I tried but mistakes comes~
Originally posted by salvelinus
You may ... you're trying first.
here is the declaration(which in myClass.h) of myClass:
and this is for the relative definations(in the file myClass.cpp):
at last, I want to invoke myClass in another files, the code is as follows:
mankind :: mankind(string s, int t)
cout << "your name is: " << name << endl;
cout << "your age is: " << age << endl;
that'all, I write the codes with my comprehension. but there is still something wrong, I couldnt figure it out at once, what's that please ???