資料結構學習網誌
2011年4月14日 星期四
EX09.指標與結構
修改程式範例: Ch3-3.c 為 Ch3-3e.c
1.增加電話結構的宣告
struct phone /* phone結構 */
{
char phone1[15];
char phone2[15];
}
2.將 struct label 增加phone結構成員:
struct phone callno;
3.使用結構變數和指標來存取
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言