I know how to define classes, and methods, both public and private and all that stuff.
I do not understand two things about classes
how do classes do things like making a variable type, such as the string class
my other question is best served by an example:
how do I structure the return statement with randomFunction?Code:class example { public: int variable1; char variable 2[100]; int method(void){ //do things } }; example randomFunction(void);
I'm sorry if this is a question I'm going to take flack for, but neither of my c++ books has any info on it and my web searches turned up nothing, as did my searches of the tutorials on this site