DEV-C++里的小程序

来源:百度知道 编辑:UC知道 时间:2024/05/16 22:14:33
我在DEV-C++里面,弄了个这:
#include<stdio.h>
#include<stdilo.h>
main(void)
{int q;
q=1;
printf(" %d is neat. /n".q)
system("pause");
}

printf(" %d is neat. /n".q)
这个有问题,但我检但不出来

printf(" %d is neat. /n".q)用逗号不是.
printf(" %d is neat. /n",q)
#include<stdio.h>
#include<stdlib.h>
main(void)
{int q;
q=1;
printf(" %d is neat. \n",q);
system("pause");
}

#include<stdlib.h>你写错了
回车是\n而不是/n

这句后面差分号,最后多了个大括号