标题:怎么改额````
取消只看楼主
x001
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-5-14
 问题点数:0 回复次数:0 
怎么改额````

#include<iostream.h>

int main()

{

int xuanze;
int rmbi;
int waibi;
int huilv;

cout <<"************************************************\n"
<<"*******①人民币兑换外币**②外币兑换人民币*******\n"
<<"************************************************\n"
<<"*请选择";
cin >>xuanze;
cout <<"************************************************\n";

if(xuanze=1)

cout <<"************************************************\n"
<<"请输入人民币数量:";
cin >>rmbi;
cout <<"************************************************\n"
<<"请输入汇率:";
cin >>huilv;
cout <<"************************************************\n"
<<"可兑换外币:"
<<rmbi*huilv <<"\n"
<<"************************************************\n";

if(xuanze=2)

cout <<"************************************************\n"
<<"请输入外币数量:";
cin >>waibi;
cout <<"************************************************\n"
<<"请输入汇率:";
cin >>huilv;
cout <<"************************************************\n"
<<"可兑换人民币:"
<<waibi/huilv <<"\n"
<<"************************************************\n";


}

搜索更多相关主题的帖子: 人民币 int 外币 cout 
2007-05-17 13:58



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-140153-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.570414 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved