是这样的吗:)

typedef struct
{
int _i;
int _j;
} _foo_t;

_foo_t _a_foo = {1, 2};

_t is mostly for type defined by typedef and old code doesn't use this convention. _ is mostly for internal C runtime functions or non-standard compliant functions.

Any way it's just naming convention -- kind of guildlines only.

所有跟帖: 

我个人理解是C++因为CLASS里有个同名的METHOD的话 -电脑民工- 给 电脑民工 发送悄悄话 (338 bytes) () 11/09/2005 postreply 20:49:34

请您先登陆,再发跟帖!