這裏當未找到我的代碼:C++標識符編譯源
#include "stdafx.h"
#include <iostream>
#include <string>
#include <sstream>
#include <math.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int userInput = -9999;
userInput = ReadNumber();
WriteAnswer(userInput);
system("pause");
return 0;
};
int ReadNumber()
{
int liInput = -9999;
cin >> liInput;
return liInput;
};
void WriteAnswer(int data)
{
cout << data << endl;
};
當我試圖編譯,它甾體抗炎藥:
1>錯誤C3861: 'ReadNumber':標識符找不到
1> error C3861:'WriteAnswer':標識符未找到
爲什麼會出現上述錯誤?以及如何解決這個問題?
謝謝
哦,是的,我忘了 – User2012384 2013-03-20 15:22:55