#include <iostream> //i:输入,o:输出,stream:流,头文件,
using namespace std;
class Student {
public:
void study();
void exam();
string _name;
int _age;
};
void Student::study() {
cout << "学习C#" << endl;
}
void Student::exam()
{
cout << "C#考试成绩100分" << endl;
}
int main()
{
Student stu;
stu._name = "小胖";
stu._age = -18;
cout << stu._name << stu._age << endl;
stu.study();
stu.exam();
return 0;
}