- 2
- 0
- 约4.83万字
- 约 25页
- 2016-11-24 发布于贵州
- 举报
C 面向对象程序设答案18章_谭浩强1
第一章
5:
#include iostream
using namespace std;
int main()
{
coutThisis;
coutaC++;
coutprogram.endl;
return 0;
}
6:
#include iostream
using namespace std;
int main()
{
int a,b,c;
a=10;
b=23;
c=a+b;
couta+b=;
coutc;
coutendl;
return 0;
}
7:
#include iostream
using namespace std;
int main()
{
int a,b,c;
int f(int x,int y,int z);
cinabc;
c=f(a,b,c);
coutcendl;
return 0;
}
int f(int x,int y,int z)
{
int m;
if (xy) m=x;
else m=y;
if (zm) m=z;
return(m);
}
8: #include iostream
using namespace std;
int main()
{
int a,b,c;
cinab;
c=a+b;
couta+b=a+ben
您可能关注的文档
最近下载
- 供电局安健环技术标准.doc VIP
- (二模)郑州市2026年高三高中毕业年高三级第二次质量预测化学试卷(含答案).pdf
- 方菱数控切割控制系统操作手册(Ver5.0).pdf
- 汽车电动助力转向系统设计.docx
- 2026年河南工业职业技术学院单招职业适应性测试题库与答案详解.docx VIP
- 好莱坞电影剧本_沃依采克_影视剧本写作.doc VIP
- (二模)郑州市2026年高三高中毕业年高三级第二次质量预测英语试卷(含答案)+听力音频.docx
- 巨沃WMS仓储方案.docx VIP
- 2026年河南工业职业技术学院单招职业适应性测试题库有答案详细解析.docx VIP
- 电路(第6版)邱关源习题答案解析.docx
原创力文档

文档评论(0)