close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
Are you an avid runner? Or even just starting out?

Brooks designs high-performance men's and women's running shoes, apparel and accessories.
From our sponsors
c語言 input/output 問題
Oct 25th 2013, 23:39

跟之前的問題類似
過是跟txt input/output 有關

我有一個input.txt

1111 John Smith 320 Emei Street Taipei Taiwan 10892 2 M Y
2222 Jane Dow 200 South Kaohsing Taiwan 10928 5 S N
3333 Jofn Dow 1234 Sun Taichug Taiwan 10783 3 S N
4444 Kat Rich 12 Oak Park NewTaiei Taiwan 10343 2 M Y

我的主程式

1. int main(void)
2. {
3. struct mydata
4. {
5. short int custID;
6. char name[25];
7. char Address1[30];
8. char Address2[30];
9. int order;
10. char type;
11. char risk;
12. } customer;

RECORD customer;

我想把上面input.txt的資料每一行(多行) 都printf出來
程式該怎麼寫呢??

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 omoss 的頭像
    omoss

    中視聶小倩線上看 , 聶小倩線上看第二集 , 聶小倩 中視 , 聶小倩電視劇 , 聶小倩

    omoss 發表在 痞客邦 留言(0) 人氣()