- 11
- 0
- 约1.02万字
- 约 14页
- 2022-03-07 发布于广东
- 举报
答案-c++面向对象程序设计课后习题答案(谭浩强版)
答案-c++面向对象程序设计课后习题答案(谭浩强版)
PAGE
答案-c++面向对象程序设计课后习题答案(谭浩强版)
第一章
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
原创力文档

文档评论(0)