class Student{ public: string name; void Student(string n); //构造函数};void Student::Studet (string n){ name =n; //传递名字}Int main(){ Student stu(张三);}