ERROR in reload operator
-
#include #include #include using namespace std; class Complex{ public: Complex(); Complex(double); Complex(double,double); void write() const ; bool operator==(const Complex& ) const ; bool operator!=(const Complex& ) const ; Complex operator-(); friend ostream& operator<<(ostream& out,Complex& c); private: double real; double imag; }; Complex::Complex(){ real=imag=0.0; } Complex::Complex(double re){ real=re; imag=0.0; } Complex::Complex(double re,double im){ real=re; imag=im; } void Complex::write() const { cout<
-
#include #include #include using namespace std; class Complex{ public: Complex(); Complex(double); Complex(double,double); void write() const ; bool operator==(const Complex& ) const ; bool operator!=(const Complex& ) const ; Complex operator-(); friend ostream& operator<<(ostream& out,Complex& c); private: double real; double imag; }; Complex::Complex(){ real=imag=0.0; } Complex::Complex(double re){ real=re; imag=0.0; } Complex::Complex(double re,double im){ real=re; imag=im; } void Complex::write() const { cout<
This is a well asked question, but this is the C++/CLI forum, try the Visual C++ forum.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
This is a well asked question, but this is the C++/CLI forum, try the Visual C++ forum.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Isn't it C++ forum?:confused:
-
Isn't it C++ forum?:confused:
"The C++ / CLI is for managed and mixed-mode C++ programming only " says the sticky post at the top of the forum. If you read that post, you'll see that it's for exactly what the name says - managed C++ and C++/CLI. This is C++ that uses the .NET framework. The visual C++ forum is for straight C++ questions.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )