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