usingnamespacestd;inti"> usingnamespacestd;inti" />
欢迎来到天天文库
浏览记录
ID:47426714
大小:51.51 KB
页数:14页
时间:2020-01-10
《c++课后题答案 钱能第二版》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
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、*i);j++){cout<<"*";}cout<usingnamespacestd;inti,j;voidmain(){for(i=1;i<=9;i++)cout<3、g三角形式cout<<"t"<#include#includeusingnamespacestd;voidmain(){inta[11]={6,3,7,1,4,8,2,9,11,5};vectorve(a4、,a+10);inthe=0;intsum=0;floataverage;floats;for(inti=0;i#include#includeusingnamespacestd;voidmain(){5、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、3)&&(a%5)&&(a%7==0))cout<usingnamespacestd;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<<7、n;elseif(n>=2){transform(n/2);cout<#include#include#include#includeusingnamespacestd;typedefvector>vii;//------------------------------------------------------
2、*i);j++){cout<<"*";}cout<usingnamespacestd;inti,j;voidmain(){for(i=1;i<=9;i++)cout<3、g三角形式cout<<"t"<#include#includeusingnamespacestd;voidmain(){inta[11]={6,3,7,1,4,8,2,9,11,5};vectorve(a4、,a+10);inthe=0;intsum=0;floataverage;floats;for(inti=0;i#include#includeusingnamespacestd;voidmain(){5、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、3)&&(a%5)&&(a%7==0))cout<usingnamespacestd;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<<7、n;elseif(n>=2){transform(n/2);cout<#include#include#include#includeusingnamespacestd;typedefvector>vii;//------------------------------------------------------
3、g三角形式cout<<"t"<#include#includeusingnamespacestd;voidmain(){inta[11]={6,3,7,1,4,8,2,9,11,5};vectorve(a
4、,a+10);inthe=0;intsum=0;floataverage;floats;for(inti=0;i#include#includeusingnamespacestd;voidmain(){
5、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、3)&&(a%5)&&(a%7==0))cout<usingnamespacestd;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<<7、n;elseif(n>=2){transform(n/2);cout<#include#include#include#includeusingnamespacestd;typedefvector>vii;//------------------------------------------------------
6、3)&&(a%5)&&(a%7==0))cout<usingnamespacestd;voidtransform(int);intn;voidmain()//十进制数转换为二进制数{cout<<"输入要转换的十进制整数:"<>num;transform(num);}voidtransform(intn){if(n<2)cout<<
7、n;elseif(n>=2){transform(n/2);cout<#include#include#include#includeusingnamespacestd;typedefvector>vii;//------------------------------------------------------
此文档下载收益归作者所有