[問題] 錯誤訊息
開發平台(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
03/13 22:57, 3F
推
03/14 01:33, , 4F
03/14 01:33, 4F
→
03/14 01:33, , 5F
03/14 01:33, 5F
→
03/14 08:52, , 6F
03/14 08:52, 6F
討論串 (同標題文章)
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章