摘要:
1.题目要求如下: 2.来吧,展示: #include <iostream> #include <stdlib.h> #include <string> using namespace std; class Teacher { public: void setName(string _name);/ 阅读全文
摘要:
1.题目要求: 定义一个Student类,包含名字一个数据成员,使用get和set函数封装名字这个数据成员。在main函数中通过new实例化对象,并打印其相关函数。 2.来吧,展示: #include <iostream> #include <string> using namespace std; 阅读全文
摘要:
1.题目要求: 2.来吧,展示: #include <iostream> #include <stdlib.h> #include <string> using namespace std; class Student { public: void setName(string _name)//注意 阅读全文