这里当未找到我的代码: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