摘要: stdlib.h头文件包括的常用的函数有malloc()、calloc()、realloc()、free()、system()、atoi()、atol()、rand()、srand()、exit()等等 假设类名叫Object 1、对象的数组的指针: 1 2 3 Object objects[100 阅读全文
posted @ 2020-02-13 22:36 nanaa 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1.(1)派生类和基类的成员函数同名的处理 #include<iostream> #include<string> using namespace std; class A { private: int a; public: A(int x) { a = x; } void setA(int x) 阅读全文
posted @ 2020-02-13 22:34 nanaa 阅读(154) 评论(0) 推荐(0) 编辑