- 5
- 0
- 约12.35万字
- 约 68页
- 2016-10-15 发布于广东
- 举报
C面向对象序设计课后习题答案1~14章
第一章
1-5、#include iostream
using namespace std;
int main()
{
coutThisis;
coutaC++;
coutprogram.;
return 0;
}
1-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;
}
1-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);
}
1-8、#include iostream
using namespace std;
int main()
{
int a,b,c;
cinab;
c=a+b;
couta+b=a+bendl;
您可能关注的文档
最近下载
- 一种电机控制器电源时序管理电路.pdf VIP
- FANUC工业机器人基础操作与编程PPT全套完整教学课件.pptx VIP
- 最新小学教师基本功比赛劳动与技术学科试卷.pdf VIP
- 清明节假期安全教育主题班会ppt文档.pptx VIP
- 10J121外墙外保温建筑构造.pdf VIP
- T_SCNA 0001-2024 成人体外膜肺氧合(ECMO)技术护理规范.docx VIP
- 学法减分答案大全学法减分考试题库及答案300题(学法减分题库及答案)【2025年新版交规题库】 .docx
- 数控加工工艺及编程 X0424351B08NR08T0141 数控车床面板及个按键介绍.pdf VIP
- 【高考】2010年全国统一考试(安徽卷)英语.doc VIP
- 杭州某学院教学楼工程造价分析.doc VIP
原创力文档

文档评论(0)