close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
Manage your social media

Best social media tool for image publishing to Facebook and Twitter. Look amazing and delight your followers. Get 40% off when you sign up today.
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
    全站熱搜
    創作者介紹
    創作者 gyyij7s6y6fly 的頭像
    gyyij7s6y6fly

    線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍

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