I have this example below. How to solve this problem?
Qt Code:
class ABC{ private: XYZ *xyz; //XYZ is not defined yet }; class XYZ{ private: ABC *abc; //ABC is defined above };To copy to clipboard, switch view to plain text mode
I have this example below. How to solve this problem?
Qt Code:
class ABC{ private: XYZ *xyz; //XYZ is not defined yet }; class XYZ{ private: ABC *abc; //ABC is defined above };To copy to clipboard, switch view to plain text mode
Put "class XYZ;" before line #1. And then go and learn about "forward declarations" in C++.
thanks for help =)
Hello ,
I am using one dialog box for conformation (named d). In that i am trying to create one object for another class(named measure) to access that class variables like
Measure *m; I got an error as
'Measure' does not name a type.
please suggest me where i am doing wrong.
Hi, everybody, I am a new friend.
Bookmarks