Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop Other
Title: 2-1 Download
 Description: Custom schematic of a complex type complex, which contains a number of member functions, the use of this class can complete the addition of the plural and plural output. Complete the class definition, and the preparation of the main function, indicating complex class object, the definition of the member function call. class complex {double real // plural real part of the double imag // the plural imaginary part of the public: complex () // no-argument constructor complex (double r, double i) // 2 parameter constructor complex addCom (complex c2) // the caller objects and object c2 added to return the complex class object void outCom () // output the caller object related data (components)} further add class of complex basic operations (eg, complex subtraction, multiplication, division, modulo, etc.), the corresponding member functions, and through the invocation of the main function at the function to verify correctness.
 Downloaders recently: [More information of uploader fr]
 To Search:
File list (Check if you may need any files):
 

2-1.cpp
    

CodeBus www.codebus.net