天津吃海鲜的地方推荐:程序运行不出结果来

来源:百度文库 编辑:高校问答 时间:2024/05/06 02:51:38
#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();