桐油还是清漆贵:程序可以运行,但没有结果

来源:百度文库 编辑:中科新闻网 时间:2024/05/10 11:29:51
#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>