開發平台(Platform): (Ex: Win10, Linux, ...)
Win10
編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出)
code: blocks
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
在練習檔案的讀寫時 讀取檔案讀不到下一行
餵入的資料(Input):
無
預期的正確結果(Expected Output):
fscanf = 1
line = 26.000000,-74.000000,James
fscanf = 1
line = 26.500000,-73.000000,James
fscanf = 1
line = 27.000000,-72.000000,James
fscanf = 1
line = 27.500000,-71.000000,James
fscanf = 1
line = 28.000000,-70.000000,James
錯誤結果(Wrong Output):
fscanf = 1
line = 26.000000,-74.000000,James
fscanf = 0
line = 26.000000,-74.000000,James
fscanf = 0
line = 26.000000,-74.000000,James
fscanf = 0
line = 26.000000,-74.000000,James
fscanf = 0
line = 26.000000,-74.000000,James
程式碼(Code):(請善用置底文網頁, 記得排版,禁止使用圖檔)
http://codepad.org/f2JGKJsS
補充說明(Supplement):
無