全文预览

谭浩强C++程序设计题解与上机指导 习题程序答案

上传者:塑料瓶子 |  格式:doc  |  页数:129 |  大小:670KB

文档介绍
er:";Р switch(place)Р {case 5:cout<<ten_thousand<<","<<thousand<<","<<hundred<<","<<ten<<","<<indiv<<endl;Р cout<<"reverse order:";Р cout<<indiv<<ten<<hundred<<thousand<<ten_thousand<<endl;Р break;Р case 4:cout<<thousand<<","<<hundred<<","<<ten<<","<<indiv<<endl;Р cout<<"reverse order:";Р cout<<indiv<<ten<<hundred<<thousand<<endl;Р break;Р case 3:cout<<hundred<<","<<ten<<","<<indiv<<endl;Р cout<<"reverse order:";Р cout<<indiv<<ten<<hundred<<endl;Р break;Р case 2:cout<<ten<<","<<indiv<<endl;Р cout<<"reverse order:";Р cout<<indiv<<ten<<endl;Р break;Р case 1:cout<<indiv<<endl;Р cout<<"reverse order:";Р cout<<indiv<<endl;Р break;Р }Р return 0;Р}РXt3-13-1Р#include <iostream>Рusing namespace std;Рint main ()Р{ long i; //i为利润Р float bonus,bon1,bon2,bon4,bon6,bon10;Р bon1=100000*0.1; //利润为10万元时的奖金

收藏

分享

举报
下载此文档