摘要: 基础 C++的类支持三种member function:static,nonstatic,virtual。 nonstatic member function 编译器会将nonstatic member function转换为普通外部函数。 1 #include <iostream> 2 3 usi 阅读全文
posted @ 2020-06-11 13:05 Chen沉尘 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 基础 数据成员分类 static data members 编译器把static data members放在类的对象之外,即将唯一的实体在程序数据区中,当两个类中的static data members同名时,编译器会推导出独一无二的名字。 我们可以通过对象、指针、和类都可以取得static da 阅读全文
posted @ 2020-06-11 10:24 Chen沉尘 阅读(437) 评论(0) 推荐(0) 编辑