这段c代码为什么提示文件不存在

[复制链接]
查看11 | 回复1 | 2010-8-29 13:58:05 | 显示全部楼层 |阅读模式
// mnbv.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
int APIENTRY WinMain(HINSTANCE hInstance,

HINSTANCE hPrevInstance,

LPSTR
lpCmdLine,

int
nCmdShow)
{
// TODO: Place code here.

MessageBox(NULL, TEXT("世界你好"), TEXT("你好"),MB_OKCANCEL);
return 0;
}
c++6.0 企业版编译

回复

使用道具 举报

千问 | 2010-8-29 13:58:05 | 显示全部楼层
是提示“stdafx.h”文件找不到吧,你可以到目录去看看是不是真的没那个文件。这个文件也可以不要的,修改后程序如下。//#include "stdafx.h"#include int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR
lpCmdLine,
int
nCmdShow){// TODO: Place code here.
Messa
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行