-
const int *p=NULL; 与 int const *p=NULL; 等价; const int * const p=NULL; 与 int const * const p=NULL; 等价查看全部
-
int const *p=x; p可以指向y查看全部
-
int const*p const int*p两者相同 int const*p=&x; *p=8;//不可以查看全部
-
函数可以有默认值查看全部
-
引用是变量的别名查看全部
-
三种有区别查看全部
-
const与引用查看全部
-
const与指针类型2查看全部
-
const与指针类型1查看全部
-
const与指针类型查看全部
-
引用做函数参数查看全部
-
指针类型的引用查看全部
-
声明给默认值,定义不给默认值查看全部
-
int *p = new int; if(null==p) { cout<<"申请失败!"<<endl; }else cout<<"申请成功!"<<endl; *p=20; cout<<*p<<endl; delete p; p= null; system("pause");查看全部
-
内联函数查看全部
举报
0/150
提交
取消