是這樣的嗎:)

來源: CutOnce 2005-11-09 20:00:20 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (334 bytes)
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

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”