欢迎来到天天文库
浏览记录
ID:50984850
大小:143.00 KB
页数:59页
时间:2020-03-08
《C经典练习程序代码.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、#includemain(){//用SIZEOF计算常量长度cout<<"sizeof('$')="<2、lep=0.1;cout<<"sizeof(i)="<3、ndl;cout<<"sizoef(int)="<4、izeof(a)<5、>main()//测试表达式类型转换{intn=100,m;doublex=3.791,y;cout<<"n*x="<6、t)1.732<main(){intscore;cout<<"score=";cin>>score;if(score<07、8、score>100){cout<<"Thescoreisoutofrange!"<=90)cout<<"9、yougrageisaA"<=80)cout<<"yougradeisaB"<=70)cout<<"yougradeisaC"<=60)cout<<"yougradeisaD"<main(){intx,y,z;charc1;cin>>x>>c1>>y;switch(c1){case'+10、':cout<
2、lep=0.1;cout<<"sizeof(i)="<3、ndl;cout<<"sizoef(int)="<4、izeof(a)<5、>main()//测试表达式类型转换{intn=100,m;doublex=3.791,y;cout<<"n*x="<6、t)1.732<main(){intscore;cout<<"score=";cin>>score;if(score<07、8、score>100){cout<<"Thescoreisoutofrange!"<=90)cout<<"9、yougrageisaA"<=80)cout<<"yougradeisaB"<=70)cout<<"yougradeisaC"<=60)cout<<"yougradeisaD"<main(){intx,y,z;charc1;cin>>x>>c1>>y;switch(c1){case'+10、':cout<
3、ndl;cout<<"sizoef(int)="<4、izeof(a)<5、>main()//测试表达式类型转换{intn=100,m;doublex=3.791,y;cout<<"n*x="<6、t)1.732<main(){intscore;cout<<"score=";cin>>score;if(score<07、8、score>100){cout<<"Thescoreisoutofrange!"<=90)cout<<"9、yougrageisaA"<=80)cout<<"yougradeisaB"<=70)cout<<"yougradeisaC"<=60)cout<<"yougradeisaD"<main(){intx,y,z;charc1;cin>>x>>c1>>y;switch(c1){case'+10、':cout<
4、izeof(a)<5、>main()//测试表达式类型转换{intn=100,m;doublex=3.791,y;cout<<"n*x="<6、t)1.732<main(){intscore;cout<<"score=";cin>>score;if(score<07、8、score>100){cout<<"Thescoreisoutofrange!"<=90)cout<<"9、yougrageisaA"<=80)cout<<"yougradeisaB"<=70)cout<<"yougradeisaC"<=60)cout<<"yougradeisaD"<main(){intx,y,z;charc1;cin>>x>>c1>>y;switch(c1){case'+10、':cout<
5、>main()//测试表达式类型转换{intn=100,m;doublex=3.791,y;cout<<"n*x="<6、t)1.732<main(){intscore;cout<<"score=";cin>>score;if(score<07、8、score>100){cout<<"Thescoreisoutofrange!"<=90)cout<<"9、yougrageisaA"<=80)cout<<"yougradeisaB"<=70)cout<<"yougradeisaC"<=60)cout<<"yougradeisaD"<main(){intx,y,z;charc1;cin>>x>>c1>>y;switch(c1){case'+10、':cout<
6、t)1.732<main(){intscore;cout<<"score=";cin>>score;if(score<0
7、
8、score>100){cout<<"Thescoreisoutofrange!"<=90)cout<<"
9、yougrageisaA"<=80)cout<<"yougradeisaB"<=70)cout<<"yougradeisaC"<=60)cout<<"yougradeisaD"<main(){intx,y,z;charc1;cin>>x>>c1>>y;switch(c1){case'+
10、':cout<
此文档下载收益归作者所有