#include main() { double a,b,c,d,e; scantf("lf%lf%lf%",a,b,c); d=(a+b+c)/3; printf("d=%lf#include main(){ double a,b,c,d,e;scantf("lf%lf%lf%",a,b,c);d=(a+b+c)/3;printf("d=%lf",d);e=d*10;e=d+0.5;e=(int)d;e=d/10;printf("e=%f",e);}哪里错误了 C++6.0

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 22:15:16
#includemain(){doublea,b,c,d,e;scantf("lf%lf%lf%",a,b,c);d=(a+b+c)/3;printf("d=%lf#includemain(){dou

#include main() { double a,b,c,d,e; scantf("lf%lf%lf%",a,b,c); d=(a+b+c)/3; printf("d=%lf#include main(){ double a,b,c,d,e;scantf("lf%lf%lf%",a,b,c);d=(a+b+c)/3;printf("d=%lf",d);e=d*10;e=d+0.5;e=(int)d;e=d/10;printf("e=%f",e);}哪里错误了 C++6.0
#include main() { double a,b,c,d,e; scantf("lf%lf%lf%",a,b,c); d=(a+b+c)/3; printf("d=%lf
#include
main()
{ double a,b,c,d,e;
scantf("lf%lf%lf%",a,b,c);
d=(a+b+c)/3;
printf("d=%lf",d);
e=d*10;
e=d+0.5;
e=(int)d;
e=d/10;
printf("e=%f",e);
}哪里错误了 C++6.0他说运行错误

#include main() { double a,b,c,d,e; scantf("lf%lf%lf%",a,b,c); d=(a+b+c)/3; printf("d=%lf#include main(){ double a,b,c,d,e;scantf("lf%lf%lf%",a,b,c);d=(a+b+c)/3;printf("d=%lf",d);e=d*10;e=d+0.5;e=(int)d;e=d/10;printf("e=%f",e);}哪里错误了 C++6.0
第四行是scanf不是scantf 而且后面还少了取地址符&

#include void main() { int y=10; do{ y--; } while(--y); printf(%d ,--y); } # include void main( ) { int x = 4 ; do { printf( %d ,x-- ) ; } while( x ) ; } 实在看不懂#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;int cases;int main() {double cl = clock();scanf(%d, #include main() { int x=3,y; do { y=x--; if(!y) {printf(*);continue;} printf(#); }whi下面程序段____________#include main(){int x=3,y;do{y=x--;if(!y){printf(*);continue;}printf(#);}while(1 #include void main() {int x=-1; do {x=x*x;} while(!x--); printf(%d,x); } 运行vc++时 #include int main() { cout #include using namespace std; int main() { cout #include int main( ){int c;cout 寻找程序(计算1+2!+3!+.)错误.#include #include main() { int j,i,n; do#include#includemain(){int j,i,n;double s,sum;scanf(%d,&n);sum=0;for(i=1;i #include main() {int y,a; y=2,a=1; while(y--!=-1) {do{a*=y;a++;}while(y--);}printf(“%d,%d,a,y);} 答案是什么,怎么算?#include main(){ int a=1,b=10;do{b-=a;a++;}while(b-- #include Void main( ) {int k=1,s=0; do{if((k%2)!=0 continue; s+=k;k++; } while(k>0); pin #include void main( ) { int k=-3; if (k #include main() { int x=0; while(x++ #include stdio.h main() { int A,B,C; while (A #include main() { float x,y; scanf(%f,&x); if(x #include main() {char c; int v0=1,v1=0,v2=0; do{switch(c=getchar()) {case ′a′:cas若运行以下程序时,从键盘输入 ADescriptor(表示回车),则下面程序的运行结果是#include ,呵呵,忘了标题 main(){char c;i sales_item是什么#include #include sales_item.husing namespace std;int main (){sales_item book;cin >> book;cout