啊哈磊_编程从这里起步

标题: 那错了??????? [打印本页]

作者: LeoGuozichuan    时间: 2014-6-20 19:32
标题: 那错了???????
#include <stdio.h>
#include <stdlib.h>
int main()
{
MessageBox(NULL,"作者:郭大巴","象星历险记",MB_ICONASTERISK);
system("pause");
return 0;
}

作者: 1935515130    时间: 2014-6-20 20:56
要不你就别用窗口盒子了……
作者: 李掌柜    时间: 2014-6-20 23:45

少了windows.h头文件
[mw_shl_code=c,true]/*
写win程序,少win头文件不错才怪呢
*/

#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
MessageBox(NULL,"作者:郭大巴","象星历险记",MB_ICONASTERISK);
system("pause");
return 0;
}[/mw_shl_code]

作者: Silocks    时间: 2014-6-21 00:17
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
前三行要带的
作者: 4399APPLE    时间: 2014-6-22 08:13
消息盒子。。。。
作者: 杨艺晨    时间: 2014-6-26 18:54
字符用引号啊!
作者: 2427046973    时间: 2014-7-7 21:44

1 字符用引号
2 少#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
作者: 利威尔·阿克曼    时间: 2014-7-27 11:00
messagebox()函数
需要包含头文件#include<windows.h>




欢迎光临 啊哈磊_编程从这里起步 (https://bbs.codeaha.com/) Powered by Discuz! X3.2