摘要: 程序虽然能跑通,但是有提示内存泄漏。 1 #ifndef STUDENT_H 2 #define STUDENT_H 3 #include <iostream> 4 5 using namespace std; 6 7 class Student 8 { 9 string name; 10 int 阅读全文
posted @ 2022-05-07 22:20 Z_He 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 这是第三天的学习记录 1 #include <iostream> 2 3 using namespace std; 4 class B 5 { 6 public: 7 B() { cout << "B construction !" << endl; } 8 ~B() { cout << "B de 阅读全文
posted @ 2022-05-07 08:15 Z_He 阅读(44) 评论(0) 推荐(0) 编辑