2023年7月3日

C++Note 类中成员变量 this指针

摘要: 成员变量和非成员变量(静态和非静态): 1 #include <iostream> 2 using namespace std; 3 4 //类内的成员变量和成员函数是分开存储的 5 //只有非静态成员变量才属于类的对象上 6 class Person1 7 { 8 //空类 9 }; 10 cla 阅读全文

posted @ 2023-07-03 16:56 廿陆 阅读(26) 评论(0) 推荐(0)

导航