摘要:
struct myStruct { int age; char name[20]; }; void fun1(const myStruct *p) { //p->age = 10; 编译不通过.指针所指向的内存空间不能被修改 } void fun2(myStruct* const p) { p->age = 10; //p = nullptr; 编译不通过.指针变了本身不能被修改 ... 阅读全文
posted @ 2017-04-08 22:15
谋定而后动?
阅读(141)
评论(0)
推荐(0)

浙公网安备 33010602011771号