c/c++ 项目中的 eclipse 错误 运行 time.output 首先打印将是空白。我们进入

eclipse error in c/c++ project in run time.output is printed in first will be blank. we enterd

#include #include

int main(void) {

int a1=20,b1=40,temp;
temp=a1;
a1=b1;
b1=temp;
printf("a1: %d, b1: %d",a1,b1);

return EXIT_SUCCESS;

输出 2个 4个 5个 输入三个数字 结果是 3.666667

#include #include

int main(void) { setbuf(stdout,NULL);

float num1,num2,num3,average;
printf("enter three numbers");
scanf("%f%f%f",&num1,&num2,&num3);
average=(num1+num2+num3)/3;
return EXIT_SUCCESS;

}