写小货币转换器 [英] write small currency converter
问题描述
您好
我的国家加纳正在改变其货币。我想用C ++编写一个小的
程序,它可以从旧货币转换为新的货币。我希望这个程序能够在一个简单的计算器后面运行 -
查看界面。我是C ++的新手,我需要一些帮助。
欢迎任何建议:)
以下是我的一切能够做到这一点:
#include< iostream>
使用命名空间std;
int main(){
//声明变量
int old_currency_value,new_currency_value,result_of_formula;
//要问用户的问题
cout<< 请输入您想要的旧货币的价值
兑换;
cin> old_currency_value;
/ /转换实现
new_currency_value = old_currency_value / 10000;
cout<< 新货币的价值是 << new_currency_value<<
endl;
//退出计划
返回0;
Hello
My country Ghana is changing its currency. I want to write a small
programme in C++ that can covert from the old currency into the new
one. I would like this programme to run behind a simple calculator-
looking interface. I''m quite new to C++, and I would need some help.
Please any suggestion is welcome :)
The following is what I have been able to do so far:
#include <iostream>
using namespace std;
int main(){
//variables declared
int old_currency_value, new_currency_value, result_of_formula;
//questions to ask user
cout<< "Please enter the value of the old currency you wish to
convert";
cin >old_currency_value;
//conversion implementation
new_currency_value = old_currency_value/10000;
cout << "The value of the new currency is " << new_currency_value <<
endl;
//quit programme
return 0;
推荐答案
" mereba" < jo ********** @ gmail.comwrote in message
news:11 ******************** **@m36g2000hse.googlegr oups.com ...
"mereba" <jo**********@gmail.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
您好
我的国家加纳正在改变其货币。我想用C ++编写一个小的
程序,它可以从旧货币转换为新的货币。我希望这个程序能够在一个简单的计算器后面运行 -
查看界面。我是C ++的新手,我需要一些帮助。
欢迎任何建议:)
以下是我的一切能够做到这一点:
#include< iostream>
使用命名空间std;
int main (){
//变量声明
int old_currency_value,new_currency_value,result_of_formula;
//问题到问用户
cout<< 请输入您想要的旧货币的价值
兑换;
cin> old_currency_value;
/ /转换实现
new_currency_value = old_currency_value / 10000;
cout<< 新货币的价值是 << new_currency_value<<
endl;
//退出计划
返回0;
Hello
My country Ghana is changing its currency. I want to write a small
programme in C++ that can covert from the old currency into the new
one. I would like this programme to run behind a simple calculator-
looking interface. I''m quite new to C++, and I would need some help.
Please any suggestion is welcome :)
The following is what I have been able to do so far:
#include <iostream>
using namespace std;
int main(){
//variables declared
int old_currency_value, new_currency_value, result_of_formula;
//questions to ask user
cout<< "Please enter the value of the old currency you wish to
convert";
cin >old_currency_value;
//conversion implementation
new_currency_value = old_currency_value/10000;
cout << "The value of the new currency is " << new_currency_value <<
endl;
//quit programme
return 0;
你的问题是什么?
So what is your question?
7月3日上午10:30,Jim Langston ; < tazmas ... @ rocketmail.comwrote:
On Jul 3, 10:30 am, "Jim Langston" <tazmas...@rocketmail.comwrote:
" mereba" < jojoo.imb ... @ gmail.com写信息
新闻:11 ********************* *@m36g2000hse.googlegr oups.com ...
"mereba" <jojoo.imb...@gmail.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
您好
我的国家加纳正在改变其货币。我想用C ++编写一个小的
程序,它可以从旧货币转换为新的货币。我希望这个程序能够在一个简单的计算器后面运行 -
查看界面。我是C ++的新手,我需要一些帮助。
欢迎任何建议:)
Hello
My country Ghana is changing its currency. I want to write a small
programme in C++ that can covert from the old currency into the new
one. I would like this programme to run behind a simple calculator-
looking interface. I''m quite new to C++, and I would need some help.
Please any suggestion is welcome :)
以下是迄今为止我能够做到的:
The following is what I have been able to do so far:
#include< iostream>
using namespace性病;
#include <iostream>
using namespace std;
int main(){
//变量声明
int main(){
//variables declared
int old_currency_value,new_currency_value,result_of_formula;
int old_currency_value, new_currency_value, result_of_formula;
//询问用户的问题
//questions to ask user
cout<< 请输入您想要的旧货币的价值
兑换;
cin> old_currency_value;
cout<< "Please enter the value of the old currency you wish to
convert";
cin >old_currency_value;
//转换实现
new_currency_value = old_currency_value / 10000;
//conversion implementation
new_currency_value = old_currency_value/10000;
cout<< 新货币的价值是 << new_currency_value<<
endl;
cout << "The value of the new currency is " << new_currency_value <<
endl;
//退出程序
//quit programme
返回0;
return 0;
你的问题是什么?
So what is your question?
感谢您的快速回复
1.如何使用C ++为此程序编写gui?
2.您对增强此计划有什么建议吗?
Thanks for your quick response
1. How do I write a gui in C++ for this programme?
2. Do you have any suggestions for enhancing this programme?
" mereba" < jo ********** @ gmail.comwrote in message
news:11 ******************** **@m36g2000hse.googlegr oups.com ...
"mereba" <jo**********@gmail.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
7月3日上午10:30,Jim Langston < tazmas ... @ rocketmail.comwrote:
On Jul 3, 10:30 am, "Jim Langston" <tazmas...@rocketmail.comwrote:
>" mereba" < jojoo.imb ... @ gmail.com写信息
新闻:11 ********************** @ m36g2000hse。 googleg roups.com ...
>"mereba" <jojoo.imb...@gmail.comwrote in message
news:11**********************@m36g2000hse.googleg roups.com...
您好
我的国家加纳正在改变其货币。我想用C ++编写一个小的
程序,它可以从旧货币转换为新的货币。我希望这个程序能够在一个简单的计算器后面运行 -
查看界面。我是C ++的新手,我需要一些帮助。
欢迎任何建议:)
Hello
My country Ghana is changing its currency. I want to write a small
programme in C++ that can covert from the old currency into the new
one. I would like this programme to run behind a simple calculator-
looking interface. I''m quite new to C++, and I would need some help.
Please any suggestion is welcome :)
以下是迄今为止我能够做到的:
The following is what I have been able to do so far:
#include< iostream>
using namespace性病;
#include <iostream>
using namespace std;
int main(){
//变量声明
int main(){
//variables declared
int old_currency_value,new_currency_value,result_of_formula;
int old_currency_value, new_currency_value, result_of_formula;
//询问用户的问题
//questions to ask user
cout<< 请输入您想要的旧货币的价值
兑换;
cin> old_currency_value;
cout<< "Please enter the value of the old currency you wish to
convert";
cin >old_currency_value;
//转换实现
new_currency_value = old_currency_value / 10000;
//conversion implementation
new_currency_value = old_currency_value/10000;
cout<< 新货币的价值是 << new_currency_value<<
endl;
cout << "The value of the new currency is " << new_currency_value <<
endl;
//退出程序
//quit programme
返回0;
return 0;
那你的问题是什么?
So what is your question?
感谢您的快速回复
1.如何使用C ++为此程序编写gui?
Thanks for your quick response
1. How do I write a gui in C++ for this programme?
GUI超出了这个新闻组的范围,它取决于平台。询问
a新闻组专用于你的操作系统/平台(alt.windows ......等..,alt.linux,
无论如何)。
GUI is beyond the scope of this newsgroup, it is platform dependant. Ask in
a newsgroup dedicated to your OS/platform (alt.windows...etc.., alt.linux,
whatever).
2.您对增强此计划有什么建议吗?
2. Do you have any suggestions for enhancing this programme?
为它编写一个GUI。当然,您需要在某处获取信息,
在您的操作系统的新闻组中尝试
Write a GUI for it. Of course, you''ll need to get information somewhere,
try in a newsgroup for your OS
这篇关于写小货币转换器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!