#include #include #include using namespace std;class Student { public: string firstName; char mi; string lastName; int score; };int main() { //定义两个学生对象 Student stu1,stu2; stu1.firstName = "Tom"; stu1.mi = 'A'; stu1.lastName = "Smith";
#include #include #include using namespace std;class Student { public: string firstName; char mi; string lastName; int score; };int main() { //定义两个学生对象 Student stu1,stu2; stu1.firstName = "Tom"; stu1.mi = 'A'; stu1.lastName = "Smith";