here's the code, when calling functionC, the error messge is
"no matching function for call to `sampleB::functionB (sampleA&)"
Code:class sampleA { public: sampleA(){} void functionA(){} private: }; class sampleB { public: sampleA object1; sampleB(){} int functionB (sampleA& in) { in.functionA(); } private: }; void functionC (sampleB in2) { in2.functionB(in2.object1); }



LinkBack URL
About LinkBacks



,thx