#include
#include
using namespace std;
class Stu
{
string name;
string num;
int age;
public:
Stu(string iname, string inum, int iage)
{
SetAll(iname, inum, iage);
}
~Stu() { display(); }
void SetAll(string iname, string inum, int iage)
{
name=iname;
num=inum;
age=iage;
}
void SetName(string iName) { name=iname; }
void SetNum(string inum) {num=inum; }
void SetAge(int iage) { age=iage; }
string GetName() { return name; }
string GetNum() { return num; }
int GetAge() { return age; }
void display() { cout<
};
int main()
{
string name="小张";
string num="201207080912";
Stu stu1(name, num, 15);
stu1.display();
}