作者sroeud7l (Teddy Bear)
看板Grad-ProbAsk
標題[理工] [計概]99雲科
時間Wed Mar 23 22:35:29 2011
抱歉我程式真的很差
1.Given the structure type and variable definitions
struct ShoeSize
{
char width;
int number;
};
struct ShoeType
{
char style;
ShoeSize size;
double price;
};
ShoeType shoel, shoe2;
What type do these variables have?
(a)shoel.style
(b)shoe2.size
(c)shoel.size.width
(d)shoe2.price
(e)shoel.size.number
答案是a c d e?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.38.161.208
→ airtsubasa:題目不是問你這個吧 03/23 23:05
→ jr771101:這題應該是問你 (a) 的變數型態 (b) 的變數型態 ... 03/23 23:10
→ jr771101:以此類推??? 03/23 23:10
推 swabasic:C I C D I 應該是這樣拉 我記得上面有人問過一樣的 03/24 00:30
→ sroeud7l:喔喔 我看懂了 感恩.. 03/24 08:10
推 DavyBlue:這題目當選擇題寫還真的蠻幽默的 03/24 10:53
→ TerenceYu:這題在graduate也有人問過... 03/24 10:54