摘要:
int b[2]={2,3}; int c[2]={4,5}; int **p,**q,**m; q=new int*[2]; q[0]=new int; q[1]=new int; **q=c[0]; *(*q+1)=c[1]; delete q[0]; delete q[1]; dele... 阅读全文
posted @ 2015-04-11 19:47
hy1hy
阅读(1437)
评论(0)
推荐(0)
摘要:
1. for(i=0;i0; i--) 速度较快;i>0被底层优化成i!=0,可直接用符号位判断。 阅读全文
posted @ 2015-04-11 18:30
hy1hy
阅读(262)
评论(0)
推荐(0)
摘要:
1. 默认成员函数Class Empty{ public: Empty(); // 缺省构造函数 Empty( const Empty& ); // 拷贝构造函数 ~Empty(); // 析构函数 Empty& operator=( const Empty& ); // 赋值运算符 Empty* ... 阅读全文
posted @ 2015-04-11 17:40
hy1hy
阅读(353)
评论(0)
推荐(0)

浙公网安备 33010602011771号