摘要:
类和对象 三大特性:封装,继承,多态 封装 #include"methodState.h" class Student { public: string name; string id; void setName(string name) { this->name = name; } void 阅读全文
posted @ 2021-11-23 16:56
托马斯源
阅读(40)
评论(0)
推荐(0)
摘要:
Day13.2021.11.23 函数默认参数 一旦开始有默认值,后面必须都要有默认值 #include"methodState.h" int func(int a, int b = 20, int c=30) { return a + b + c; } /* 一旦开始有默认值,后面必须都要有默认值 阅读全文
posted @ 2021-11-23 14:17
托马斯源
阅读(55)
评论(0)
推荐(0)
浙公网安备 33010602011771号