啊哈磊_编程从这里起步

标题: 求助!!!!!!1 [打印本页]

作者: 279829771    时间: 2014-7-21 07:35
标题: 求助!!!!!!1
我是新手,刚下的啊哈C,但是编好的程序打开后一闪就关了,WIN8的系统,请问大神们有谁知到怎么解决吗??{:soso_e109:}

作者: 利威尔·阿克曼    时间: 2014-7-27 10:55
程序加上
system("pause");
作者: 利威尔·阿克曼    时间: 2014-7-27 10:56
#include <stdio.h>
#include <stdlib.h>
int main()
{
        //这里写代码
        system("pause");
        return 0;
}


作者: 趣味的吃    时间: 2014-7-30 18:41
同楼上,但还有一种:
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
         //这里写代码
       Sleep(1000)//这里以毫秒作单位
         return 0;
}
作者: Cminister    时间: 2014-8-5 20:16
加上system ("pause")了吗? 加上了还有问题再加Sleep(1000)括号是毫秒计算 s大写 再不行重新下载

作者: 李布铎    时间: 2014-9-20 21:19
#include <stdio.h>
#include <stdlib.h>
int main()
{
        //这里写代码
        system("pause");
        return 0;
}
作者: 李布铎    时间: 2014-9-20 21:19
#在这里快速回复##include <stdio.h> #include <stdlib.h> int main() {         //这里写代码         system("pause");         return 0; }
作者: 李布铎    时间: 2014-9-20 21:20
#include <stdio.h>
#include <stdlib.h>
int main()
{
        //这里写代码
        system("pause");
        return 0;
}




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