c++程序调试问题,请sos
aoxue 2004-04-14 09:19:17 我如下简单的代码,调试不过,请help me,3qu
#include<iostream>
using namespace std;
int work(int *pi);
int work(int *pi) {
*pi = 1024;
return *pi;
}
int main(int argc, char* argv[])
{
int ival1;
int *pi1 = &ival1;
ival1 = work(*pi1);
return 0;
}
错误提示:
-------------------Configuration: aoxuePoint1 - Win32 Debug--------------------
Compiling...
StdAfx.cpp
c:\program files\microsoft visual studio\vc98\include\xlocale(467) : error C2857: '#include' statement specified with the /Ycstdafx.h command-line option was not found in the source file
Error executing cl.exe.
aoxuePoint1.exe - 1 error(s), 0 warning(s)