Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

C/C++中typedef的問題

0 views
Skip to first unread message

血尿很舒服

unread,
Nov 19, 2002, 1:03:47 AM11/19/02
to

typedef的用法如下:

typedef [data type] [identifier];

意思是往後我們可以在程式裡使用[identifier]來取代[data type]。

那麼,以下常見的程式碼該怎麼解釋:

typedef struct A{
.
.
.
}B;

是把struct typedef成A,再用A宣告一個instance B?

還是把struct A typedef成B呢?

p.s. 請順便回到我信箱, thx.
--
手把青秧插滿田,低頭便見水中天;

心地清淨方為道,退步原來是向前。
--
[1;32m※ Origin: [33m元智大學 風之塔 [37m<bbs.yzu.edu.tw> [m
[1;32m※ From : [36mppu1.et.ntust.edu.tw [m

0 new messages