全部问题 > 当前问题

system("pause")这个程序出错

--------------------Configuration: program1 - Win32 Debug--------------------

Compiling...

program1.c

c:\users\zjp\desktop\c语言学习\program1.c(2) : error C2006: #include expected a filename, found '{'

C:\Users\zjp\Desktop\C语言学习\program1.c(6) : warning C4013: 'system' undefined; assuming extern returning int

执行 cl.exe 时出错.


匿名课官 2015-7-5 16:55:16

共 8 个回答

祁老师 2015-7-6 09:12:17

问问题涉及到程序的 吧程序发出来  

匿名课官 2015-7-6 09:50:00

回复 祁老师

#include <stdio.h>

#include  <stlib.h>
main()
{
printf("hello world\n");

system("pause");
}

匿名课官 2015-7-6 09:50:25

回复 祁老师

#include <stdio.h>

#include  <stlib.h>
main()
{
printf("hello world\n");

system("pause");
}

匿名课官 2015-7-6 09:50:26

回复 祁老师

#include <stdio.h>

#include  <stlib.h>
main()
{
printf("hello world\n");

system("pause");
}

祁老师 2015-7-6 09:52:49

#include  <stlib.h>   是stdlib.h

匿名课官 2015-7-6 10:13:05

回复 祁老师:真的不报错了,我太粗心了


杨丽 2017-9-18 20:37:27

老师,怎么在手机上看题库视频啊

杨丽 2017-9-18 20:37:47

下了虎奔等考看不了

问题来自: 格式化输出函数