Have Problems to create a Copy Constructor
Several Tutorials later i didnt get it.
im using Dev C++ with gcc. i did it in the school some years ago with VS 6
should be:
ERROR: passing `const cX' as `this' argument of `float cX::GetN()' discards qualifiersCode:class cX
{
private: float n;
public:
cX(){n=0.0;};
float GetN(){return n;};
cX(const cX& x){n=x->GetN();}; // <- COPY N!!
};
any suggestions?