/*************************************************************************** complex-temp.cpp - description ------------------- begin : Fri Jan 17 19:41:58 CST 2003 copyright : (C) 2003 by Daniel Eric Smith email : ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include "complex-temp.hpp" int main() { double r,i,re,im,m,a; complex z,w,za,zs,zm,zd; cout << "Enter the real and imaginary parts of z:"<>r>>i; z.set(r,i); // cout << "Enter the real and imaginary parts of w:"<>r>>i; // w.set(r,i); // za=z+w; // zs=z-w; // zm=z*w; // cout <<"z="<