摘要:
程序虽然能跑通,但是有提示内存泄漏。 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 阅读全文
摘要:
这是第三天的学习记录 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 阅读全文