欢迎来到天天文库
浏览记录
ID:8928571
大小:264.50 KB
页数:59页
时间:2018-04-12
《c经典练习程序代码》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、#includemain(){//用SIZEOF计算常量长度cout<<"sizeof('$')="<2、out<<"sizeof(i)="<3、int)="<4、f(xy)="<main()//测试表达式类型转换{intn=100,m;double5、x=3.791,y;cout<<"n*x="<6、0)<main(){intscore;cout<<"score=";cin>>score;if(score<07、8、score>100){cout<<"Thescoreisoutofrange!"<=90)cout<<"yougrageisaA"<=80)cout<<"yougradeis9、aB"<=70)cout<<"yougradeisaC"<=60)cout<<"yougradeisaD"<main(){intx,y,z;charc1;cin>>x>>c1>>y;switch(c1){case'+':cout<10、<<"="<
2、out<<"sizeof(i)="<3、int)="<4、f(xy)="<main()//测试表达式类型转换{intn=100,m;double5、x=3.791,y;cout<<"n*x="<6、0)<main(){intscore;cout<<"score=";cin>>score;if(score<07、8、score>100){cout<<"Thescoreisoutofrange!"<=90)cout<<"yougrageisaA"<=80)cout<<"yougradeis9、aB"<=70)cout<<"yougradeisaC"<=60)cout<<"yougradeisaD"<main(){intx,y,z;charc1;cin>>x>>c1>>y;switch(c1){case'+':cout<10、<<"="<
3、int)="<4、f(xy)="<main()//测试表达式类型转换{intn=100,m;double5、x=3.791,y;cout<<"n*x="<6、0)<main(){intscore;cout<<"score=";cin>>score;if(score<07、8、score>100){cout<<"Thescoreisoutofrange!"<=90)cout<<"yougrageisaA"<=80)cout<<"yougradeis9、aB"<=70)cout<<"yougradeisaC"<=60)cout<<"yougradeisaD"<main(){intx,y,z;charc1;cin>>x>>c1>>y;switch(c1){case'+':cout<10、<<"="<
4、f(xy)="<main()//测试表达式类型转换{intn=100,m;double
5、x=3.791,y;cout<<"n*x="<6、0)<main(){intscore;cout<<"score=";cin>>score;if(score<07、8、score>100){cout<<"Thescoreisoutofrange!"<=90)cout<<"yougrageisaA"<=80)cout<<"yougradeis9、aB"<=70)cout<<"yougradeisaC"<=60)cout<<"yougradeisaD"<main(){intx,y,z;charc1;cin>>x>>c1>>y;switch(c1){case'+':cout<10、<<"="<
6、0)<main(){intscore;cout<<"score=";cin>>score;if(score<0
7、
8、score>100){cout<<"Thescoreisoutofrange!"<=90)cout<<"yougrageisaA"<=80)cout<<"yougradeis
9、aB"<=70)cout<<"yougradeisaC"<=60)cout<<"yougradeisaD"<main(){intx,y,z;charc1;cin>>x>>c1>>y;switch(c1){case'+':cout<10、<<"="<
10、<<"="<
此文档下载收益归作者所有