第一章
5:
#include
cout<<\ cout<<\ cout<<\ return 0; } 6:
#include
int a,b,c; a=10; b=23; c=a+b; cout<<\ cout< 7: #include int a,b,c; int f(int x,int y,int z); cin>>a>>b>>c; c=f(a,b,c); cout< int f(int x,int y,int z) { int m; if (x return(m); } 8: #include int a,b,c; cin>>a>>b; c=a+b; cout<<\ return 0; } 9: #include {int add(int x,int y); int a,b,c; cin>>a>>b; c=add(a,b); cout<<\ return 0; } int add(int x,int y) {int c; c=x+y; return(c); } 10: #include
c++面向对象程序设计课后习题答案(谭浩强版)
第一章5:#includeusingnamespacestd;intmain(){cout<<\cout<<\cout<<\return0;}6:#includeusingnamespacestd;intmain(){int
推荐度:
![](/skin/haowen/images/icon_star.png)
![](/skin/haowen/images/icon_star.png)
![](/skin/haowen/images/icon_star.png)
![](/skin/haowen/images/icon_star.png)
![](/skin/haowen/images/icon_star.png)
点击下载文档文档为doc格式