双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

c++程序调试问题,请sos

aoxue aoxue 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我如下简单的代码,调试不过,请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)


...全文
评论 7
收藏 已收藏
分享
返回顶部
aoxue
资源 2,586 成员 18,437 内容