楼主:
dzwei (Cout<< *p << \n ;)
2018-04-29 16:55:22刚好最近有碰到,
目前也还在学习中,
刚好有点小心得,
有错误还恳请版上的大师们指正,
谢谢!
提个关键字跟板友分享一下
‘opaque pointer’
这跟C++的pimpl有87%像
以下code举例于维基百科
//=========================================
/* obj.h */
struct obj;
/*
* The compiler considers struct obj an incomplete type.
* Incomplete types can be used in declarations.
*/
size_t obj_size(void);
void obj_setid(struct obj *, int);
int obj_getid(struct obj *);
//