國立屏東商業技術學院 資訊工程系 程式設計(一)
練習格式化輸入與輸出
turnin code c.hw6
due date: TBA
[9:19 user@ws hw6] ./a.out < in.1 Duration: 09:14:07(HH:MM:SS) Distance: 196.19KM Average Speed: 21.23KM/H [9:19 user@ws hw6] ./a.out < in.2 Duration: 12:03:32(HH:MM:SS) Distance: 1054.00KM Average Speed: 87.40KM/H [9:19 user@ws hw6] ./a.out < in.2 Duration: 01:30:00(HH:MM:SS) Distance: 30.00KM Average Speed: 20.00KM/H [9:19 user@ws hw6]執行結果與輸出格式必須與上述一致
[9:19 user@ws hw5] ./numGen 2 4 2 8 10 [9:19 user@ws hw5] ./sum5Num 2 4 2 8 10 26 [9:19 user@ws hw5] ./numGen | ./sum5Num 43