枪火兄弟连官网:程序可以运行,但没有结果

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/07 13:52:09
#include<stdio.h>
void main()
{int a,b,sum;
a=123;b=456;
sum=a+b;
printf("sum is %d\n",sum):
}
没有错误,也没有警告;
但按Alt+F5没有结果

运行之后,直接返回程序编译界面了,在最后一行加上getch();在最前边加上#include <conio.h>