c++程序调试问题,请sos
我如下简单的代码,调试不过,请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)
#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)
...全文
相关推荐
sos2:在Rust中重写了sos
sos2:在Rust中重写了sos
MY_SOS_Breath.rar_C/C++_
使用D13点亮LED时行SOS闪烁,同时,使用D11点亮LED进行呼吸闪烁。
sos:简单的c ++对象序列化
简单C ++对象序列化(SOS) 一个最小化库,用于将C ++对象序列化为类似JSON的对象。 使用sos::*类构建C ++对象,并将其序列化为JSON或YAML。 您还可以提供自己的自定义序列化程序。 用法 # include < iostream> # include " sos.h " int main ( int argc, char ** argv) { // Build an object sos::Object root; // Build a string and add it to a key in the object root. set ( " username " , sos::String ( " pksunkara " )); // Build a number and add it to a key in the
sos.rar_教育系统应用_C/C++_
包括学生管理,商品管理,矩阵构建等一些C++编译程序的实例
SOS坦克大战
用VC做的一款90坦克改进版的坦克大战游戏,不错的资源,与大家分享一下!


资源

