我们的民族小学知识点:程序运行不出结果来

来源:百度文库 编辑:高考问答 时间:2024/07/04 19:11:27
#include<stdio.h>
void main()
{
unsigned int a=65535;b=-2;
printf("a=%d,%o,%x,%u\n",a,a,a,a):
printf("a=%d,%o,%x,%u\n",a,a,a,a):
}
该程序没有错误,可以运行。
但按Alt+F5没有结果

你在最后添加一句:getchar();
不行就加两个getchar();