- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main(void){
- int money;
- int money2;
- double mon[19]={31.43,3.94,46,27.89,30.10,22.19,28.04,0.33,0.00,3.71,22.31,0.87,0.64,0.00296,39.93,0.02,0.00142,8.25,4.56};
- cout<<"請輸入您要選擇的幣值: 1.美金 2.港幣 3.英鎊 4.澳幣 5.加拿大幣 6.新加坡幣"<<endl;
- cout<<"7.瑞士法郎 8.日圓 9.南非幣 10.瑞典幣 11.紐元 12.泰幣 13.菲國比索 "<<endl;
- cout<<"14.印尼幣 15.歐元 16.韓元 17.越南盾 18.馬來幣 19.人民幣 "<<endl;
- cin>>money;
- cout<<"請輸入money~"<<endl;
- cin>>money2;
- cout<<"money="<<money2*mon[money-1]<<endl;
-
- system("pause");
- return 0;
- }
複製代碼 |