close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
Looking for something light while keeping you safe and comfortable during extended waterside activities?

Shop New Drainmaker Shoe for Men, Women and Kids at Columbia!
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
    全站熱搜
    創作者介紹
    創作者 jmuko90 的頭像
    jmuko90

    2016【韓劇】奶酪陷阱劇情簡介及人物介紹奶酪陷阱 EP03 預告奶酪陷阱 線上看奶酪陷阱(捕鼠器裡的奶酪) 第1集

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