usingnamespacestd;inti"> usingnamespacestd;inti" />
欢迎来到天天文库
浏览记录
ID:51956249
大小:30.50 KB
页数:14页
时间:2020-03-20
《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、j<=i;j++){cout<<"";}for(j=1;j<=(7-2*i);j++){cout<<"*";}cout<usingnamespacestd;inti,j;voidmain(){for(i=1;i<=9;i++)cout<3、out<#i4、nclude#includeusingnamespacestd;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、[i]-average);}s=sqrt(he/ve.size());cout<<"s="<#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%6、7==0))cout<7、out<usingnamespacestd;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<=2){transform(n/2);cout<8、lude#include#include#include#includeusingnamespacestd;typedefvector>vii;//------------------------------------------------------
2、j<=i;j++){cout<<"";}for(j=1;j<=(7-2*i);j++){cout<<"*";}cout<usingnamespacestd;inti,j;voidmain(){for(i=1;i<=9;i++)cout<3、out<#i4、nclude#includeusingnamespacestd;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、[i]-average);}s=sqrt(he/ve.size());cout<<"s="<#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%6、7==0))cout<7、out<usingnamespacestd;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<=2){transform(n/2);cout<8、lude#include#include#include#includeusingnamespacestd;typedefvector>vii;//------------------------------------------------------
3、out<#i
4、nclude#includeusingnamespacestd;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、[i]-average);}s=sqrt(he/ve.size());cout<<"s="<#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%6、7==0))cout<7、out<usingnamespacestd;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<=2){transform(n/2);cout<8、lude#include#include#include#includeusingnamespacestd;typedefvector>vii;//------------------------------------------------------
5、[i]-average);}s=sqrt(he/ve.size());cout<<"s="<#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%
6、7==0))cout<7、out<usingnamespacestd;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<=2){transform(n/2);cout<8、lude#include#include#include#includeusingnamespacestd;typedefvector>vii;//------------------------------------------------------
7、out<usingnamespacestd;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<=2){transform(n/2);cout<8、lude#include#include#include#includeusingnamespacestd;typedefvector>vii;//------------------------------------------------------
8、lude#include#include#include#includeusingnamespacestd;typedefvector>vii;//------------------------------------------------------
此文档下载收益归作者所有