我是刚学习程序设计,有问题请教,谢谢
按老师的要求编写了以下内容#include<iostream>
using namespace std;
int main()
{
float ApplePrice=3.5;
float BananaPrice=4.2;
float AppleWeight=0.0;
float BananaWeight=0.0;
cout<<"请输入苹果的价格"<< endl;
cin>>AppleWeight;
cout<<"请输入香蕉的价格"<<endl;
cin>>BananaWeight;
Total=ApplePrice*AppleWeight+BananaPrice*BananaWeight;
cout<<"应付款"<<Total<<endl;
return 0
}
请问哪里是错误的,求解,谢谢
[此贴子已经被作者于2017-6-1 15:38编辑过]