- 2
- 0
- 约5.44万字
- 约 25页
- 2016-10-12 发布于贵州
- 举报
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
您可能关注的文档
最近下载
- 朗宏氧化锆.pdf VIP
- TCHES水库放空工程技术导则.pdf
- 1.新版团校入团培训考试必备200题题库(含答案).pdf
- 神奇动物在哪里电影剧本-j k rowling添加.pdf VIP
- 部编版六年级下册道德与法治3.学会反思第一课时课件.pptx VIP
- 第3课 学会反思 第一课时 课件 部编版六年级下册道德与法治.ppt VIP
- 部编版道德与法治六年级上册第3课学会反思课件第一课时.ppt VIP
- 人教部编版道德与法治六年级下册第3课《学会反思》第一课时公开课一等奖创新教案.docx VIP
- 财产保全申请书(诉前 诉中,附担保材料要求).docx VIP
- AP宏观经济学 2009年真题 附答案和评分标准 AP Macroeconomics 2009 Real Exam with Answers and Scoring Guidelines.pdf VIP
原创力文档

文档评论(0)