usingnamespacestd;inti"> usingnamespacestd;inti" />
欢迎来到天天文库
浏览记录
ID:55160237
大小:31.00 KB
页数:14页
时间:2020-04-29
《c++课后题答案--钱能第二版.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、1-1#includeusingnamespacestd;voidmain(){cout<<"I'mastudent"<usingnamespacestd;inti,j;voidmain(){for(i=1;i<=4;i++){for(j=1;j<=4-i;j++){cout<<"";}for(j=1;j<=2*i-1;j++){cout<<"*";}cout<2、out<<"";}for(j=1;j<=(7-2*i);j++){cout<<"*";}cout<usingnamespacestd;inti,j;voidmain(){for(i=1;i<=9;i++)cout<3、<#include#includeusin4、gnamespacestd;voidmain(){inta[11]={6,3,7,1,4,8,2,9,11,5};vectorve(a,a+10);inthe=0;intsum=0;floataverage;floats;for(inti=0;i5、"<#include#includeusingnamespacestd;voidmain(){inta=0;ifstreamin("D:\aaa.txt");for(strings;getline(in,s);)for(istringstreamsin(s);sin>>a;){if((a%3==0)&&(a%5==0)&&(a%7==0))cout<6、&&(a%7))cout<usingnamespace7、std;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<=2){transform(n/2);cout<#include#include#include#include8、rithm>usingnamespacestd;typedefvector>vii;//------------------------------------------------------
2、out<<"";}for(j=1;j<=(7-2*i);j++){cout<<"*";}cout<usingnamespacestd;inti,j;voidmain(){for(i=1;i<=9;i++)cout<3、<#include#includeusin4、gnamespacestd;voidmain(){inta[11]={6,3,7,1,4,8,2,9,11,5};vectorve(a,a+10);inthe=0;intsum=0;floataverage;floats;for(inti=0;i5、"<#include#includeusingnamespacestd;voidmain(){inta=0;ifstreamin("D:\aaa.txt");for(strings;getline(in,s);)for(istringstreamsin(s);sin>>a;){if((a%3==0)&&(a%5==0)&&(a%7==0))cout<6、&&(a%7))cout<usingnamespace7、std;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<=2){transform(n/2);cout<#include#include#include#include8、rithm>usingnamespacestd;typedefvector>vii;//------------------------------------------------------
3、<#include#includeusin
4、gnamespacestd;voidmain(){inta[11]={6,3,7,1,4,8,2,9,11,5};vectorve(a,a+10);inthe=0;intsum=0;floataverage;floats;for(inti=0;i5、"<#include#includeusingnamespacestd;voidmain(){inta=0;ifstreamin("D:\aaa.txt");for(strings;getline(in,s);)for(istringstreamsin(s);sin>>a;){if((a%3==0)&&(a%5==0)&&(a%7==0))cout<6、&&(a%7))cout<usingnamespace7、std;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<=2){transform(n/2);cout<#include#include#include#include8、rithm>usingnamespacestd;typedefvector>vii;//------------------------------------------------------
5、"<#include#includeusingnamespacestd;voidmain(){inta=0;ifstreamin("D:\aaa.txt");for(strings;getline(in,s);)for(istringstreamsin(s);sin>>a;){if((a%3==0)&&(a%5==0)&&(a%7==0))cout<6、&&(a%7))cout<usingnamespace7、std;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<=2){transform(n/2);cout<#include#include#include#include8、rithm>usingnamespacestd;typedefvector>vii;//------------------------------------------------------
6、&&(a%7))cout<usingnamespace
7、std;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<=2){transform(n/2);cout<#include#include#include#include8、rithm>usingnamespacestd;typedefvector>vii;//------------------------------------------------------
8、rithm>usingnamespacestd;typedefvector>vii;//------------------------------------------------------
此文档下载收益归作者所有