摘要:
int a[10]; //是个元素,在windows下回报错,linux会输出一个随机数int a[10]={1,2}; //初始化,其他的为0数组越界:为了调高效率, 编译器不会对数组越界做检查#include using namespace std;int main(){ int ... 阅读全文
posted @ 2015-06-21 23:07
思齐_
阅读(465)
评论(0)
推荐(0)
摘要:
#include using namespace std;class common{public: virtual void hello(){couthello(); return 0;}静态联编:在编译时就确定指针指向的类#include using namespace std;cla... 阅读全文
posted @ 2015-06-21 15:21
思齐_
阅读(230)
评论(0)
推荐(0)
摘要:
继承#include using namespace std;class father{public: void getHeight(){coutweightheightageusing namespace std;class father{public: int height;};cl... 阅读全文
posted @ 2015-06-21 12:32
思齐_
阅读(228)
评论(0)
推荐(0)
浙公网安备 33010602011771号