70,037
社区成员
发帖
与我相关
我的任务
分享
/* Forward declaration for the object interface */
struct SLObjectItf_;
typedef const struct SLObjectItf_ * const * SLObjectItf;
哪位大神给帮忙解读一下这个定义 
将一个 struct SLObjectItf_ 结构体的 二维指针 类型定义为 SLObjectItf 类型 , 这么理解对吗
[/quote]
不完全对,第一级指针是常量,且指向一个const struct ...
还是让代码说话
int a=0;
const int *b= &a;
const int *const* c= &b;
int d=100;
*c = &d; //error
int *e = new int(10);
c=&e;//ok

将一个 struct SLObjectItf_ 结构体的 二维指针 类型定义为 SLObjectItf 类型 , 这么理解对吗