// IAPS - Image analysis program system // // File name : exComplx.cc // Description: an example for complex number class usage // Last change: 26.01.1994 // Author : Radek Marik // Libraries : iaps // ----------------------------------------------------------------------- // // // Modifications: // // // // #include #include "amma/Complex.hh" int main(void) { ostream & myStdO = cout; // AT&T C++ 3.1 cout = ostream_withassign // GNU C++ 2.4.5 it must be reference myStdO << "Complex number\n" << "==============\n"; ComplexC a(3); ComplexC b(4,5); ComplexC c = a.I() + b.Conj(); myStdO << "a : " << a << '\n' << "b : " << b << '\n' << "c = a.I() + b.Conj(): " << c << '\n'; myStdO << "End of the example\n" << flush; return(0); } // IAPS - Image analysis program system. // End of file exComplx.cc