摘要:
友元是为了让 全局函数作友元 #include<iostream> #include<string> using namespace std; class Student { public: int age; private: int height; public: Student(int age1 阅读全文
posted @ 2020-09-25 17:07
磊神加特林
阅读(106)
评论(0)
推荐(0)
摘要:
当一个类的成员是一个对象时,他先构造内部的对象,析构时是相反的顺序。 #include<iostream> #include<string> using namespace std; class Student { private: int age; int height; public: Stud 阅读全文
posted @ 2020-09-25 09:15
磊神加特林
阅读(145)
评论(0)
推荐(0)

浙公网安备 33010602011771号