[問題] 錯誤訊息

看板C_and_CPP (C/C++)作者 (沒想過)時間14年前 (2012/03/13 22:23), 編輯推噓1(105)
留言6則, 2人參與, 最新討論串2/3 (看更多)
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Dev C++ 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) N 問題(Question): 編譯出現錯誤訊息 餵入的資料(Input):預期的正確結果(Expected Output): save.txt灌入數據,並cout出來 錯誤結果(Wrong Output): Circular 01 <- 01.o dependency dropped. 程式碼(Code):(請善用置底文網頁, 記得排版) #include<iostream> #include<string> #include<fstream> #include<iomanip> using namespace std; int main(){ int con = 1; string op; ofstream outputFile; outputFile.open("save.txt"); outputFile<<"0.8 1.029638557\n"; outputFile<<"0.9 1.260158218\n"; outputFile<<"1 1.557407725\n"; outputFile<<"1.1 1.964759657\n": outputFile<<"1.2 2.572151622\n"; outputFile.close(); ifstream inputFile; inputFile.open("save.txt"); while(con<=6) { if(con%2==1) { inputFile >> op; cout<<op; } else { inputFile >> op; cout<<op<<endl; } con++; } inputFile.close(); system("pause"); return 0; } 補充說明(Supplement): 麻煩各位了...第一次看到這種錯誤訊息 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.114.220.123

03/13 22:31, , 1F
我發現自己犯傻了...大家別理我
03/13 22:31, 1F

03/13 22:33, , 2F
但還是想請問錯誤訊息的意義
03/13 22:33, 2F

03/13 22:57, , 3F
並且請問如何修正....我還是改不出來QAQ
03/13 22:57, 3F

03/14 01:33, , 4F
小弟我用VC2005 build沒看到你說的error message, 但是
03/14 01:33, 4F

03/14 01:33, , 5F
1.1 1.964759657 <= 這行的最後 ; 打成 : 了....@_@"
03/14 01:33, 5F

03/14 08:52, , 6F
真的耶 @@
03/14 08:52, 6F
文章代碼(AID): #1FNrXgO- (C_and_CPP)
討論串 (同標題文章)
文章代碼(AID): #1FNrXgO- (C_and_CPP)