包头市高新区油局:程序运行不出结果来

来源:百度文库 编辑:中科新闻网 时间:2024/05/05 01:14:54
#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();