0_0_14804629_13826.cpp:5:2: error: stray '#' in program
int x,y,sum; //定义需要相加的数还有存储结果的变量
^
0_0_14804629_13826.cpp:5:8: error: stray '#' in program
int x,y,sum; //定义需要相加的数还有存储结果的变量
^
0_0_14804629_13826.cpp:5:14: error: stray '#' in program
int x,y,sum; //定义需要相加的数还有存储结果的变量
^
0_0_14804629_13826.cpp:5:32: error: stray '#' in program
int x,y,sum; //定义需要相加的数还有存储结果的变量
^
0_0_14804629_13826.cpp:6:2: error: stray '#' in program
printf("Please input x,y:"); //提示输入需要相加的数
^
0_0_14804629_13826.cpp:6:8: error: stray '#' in program
printf("Please input x,y:"); //提示输入需要相加的数
^
0_0_14804629_13826.cpp:6:14: error: stray '#' in program
printf("Please input x,y:"); //提示输入需要相加的数
^
0_0_14804629_13826.cpp:7:2: error: stray '#' in program
scanf("%d%d",&x,&y); // 接收输入的数两个,输入时用空格分开,比如1 2
^
0_0_14804629_13826.cpp:7:8: error: stray '#' in program
scanf("%d%d",&x,&y); // 接收输入的数两个,输入时用空格分开,比如1 2
^
0_0_14804629_13826.cpp:7:14: error: stray '#' in program
scanf("%d%d",&x,&y); // 接收输入的数两个,输入时用空格分开,比如1 2
^
0_0_14804629_13826.cpp:8:2: error: stray '#' in program
sum=x+y; //把刚才输入的数相加
^
0_0_14804629_13826.cpp:8:8: error: stray '#' in program
sum=x+y; //把刚才输入的数相加
^
0_0_14804629_13826.cpp:8:14: error: stray '#' in program
sum=x+y; //把刚才输入的数相加
^
0_0_14804629_13826.cpp:9:2: error: stray '#' in program
printf("sum=%d",sum); //打印结果
^
0_0_14804629_13826.cpp:9:8: error: stray '#' in program
printf("sum=%d",sum); //打印结果
^
0_0_14804629_13826.cpp:9:14: error: stray '#' in program
printf("sum=%d",sum); //打印结果
^
0_0_14804629_13826.cpp:10:2: error: stray '#' in program
getch();//输入任意键结束程序
^
0_0_14804629_13826.cpp:10:8: error: stray '#' in program
getch();//输入任意键结束程序
^
0_0_14804629_13826.cpp:10:14: error: stray '#' in program
getch();//输入任意键结束程序
^
0_0_14804629_13826.cpp: In function 'int main()':
0_0_14804629_13826.cpp:5:3: error: lvalue required as unary '&' operand
int x,y,sum; //定义需要相加的数还有存储结果的变量
^
0_0_14804629_13826.cpp:5:9: error: lvalue required as unary '&' operand
int x,y,sum; //定义需要相加的数还有存储结果的变量
^
0_0_14804629_13826.cpp:5:15: error: lvalue required as unary '&' operand
int x,y,sum; //定义需要相加的数还有存储结果的变量
^
0_0_14804629_13826.cpp:5:33: error: lvalue required as unary '&' operand
int x,y,sum; //定义需要相加的数还有存储结果的变量
^
0_0_14804629_13826.cpp:6:3: error: lvalue required as unary '&' operand
printf("Please input x,y:"); //提示输入需要相加的数
^
0_0_14804629_13826.cpp:6:9: error: lvalue required as unary '&' operand
printf("Please input x,y:"); //提示输入需要相加的数
^
0_0_14804629_13826.cpp:6:15: error: lvalue required as unary '&' operand
printf("Please input x,y:"); //提示输入需要相加的数
^
0_0_14804629_13826.cpp:7:3: error: lvalue required as unary '&' operand
scanf("%d%d",&x,&y); // 接收输入的数两个,输入时用空格分开,比如1 2
^
0_0_14804629_13826.cpp:7:9: error: lvalue required as unary '&' operand
scanf("%d%d",&x,&y); // 接收输入的数两个,输入时用空格分开,比如1 2
^
0_0_14804629_13826.cpp:7:15: error: lvalue required as unary '&' operand
scanf("%d%d",&x,&y); // 接收输入的数两个,输入时用空格分开,比如1 2
^
0_0_14804629_13826.cpp:8:3: error: lvalue required as unary '&' operand
sum=x+y; //把刚才输入的数相加
^
0_0_14804629_13826.cpp:8:9: error: lvalue required as unary '&' operand
sum=x+y; //把刚才输入的数相加
^
0_0_14804629_13826.cpp:8:15: error: lvalue required as unary '&' operand
sum=x+y; //把刚才输入的数相加
^
0_0_14804629_13826.cpp:9:3: error: lvalue required as unary '&' operand
printf("sum=%d",sum); //打印结果
^
0_0_14804629_13826.cpp:9:9: error: lvalue required as unary '&' operand
printf("sum=%d",sum); //打印结果
^
0_0_14804629_13826.cpp:9:15: error: lvalue required as unary '&' operand
printf("sum=%d",sum); //打印结果
^
0_0_14804629_13826.cpp:10:3: error: lvalue required as unary '&' operand
getch();//输入任意键结束程序
^
0_0_14804629_13826.cpp:10:9: error: lvalue required as unary '&' operand
getch();//输入任意键结束程序
^
0_0_14804629_13826.cpp:10:15: error: lvalue required as unary '&' operand
getch();//输入任意键结束程序
^
|