- 1
- 0
- 约6.4千字
- 约 18页
- 2021-12-03 发布于北京
- 举报
第 3 次作业
一、填空题(本大题共 20 分,共 5 小题,每小题 4 分)
1.
类型兼容原则指的是:任何在需要 对象的地方,都可以用 的对象去替代。
2.
重新抛出异常的表达式为: o
3.
STL 中算法大致分为四类,分别是 、 、 、 o
4.
以下程序的执行结果是 o #inelude iostream
using namespace std; class A{
int x; public:
A(int x) {this-x 二 x;}
A operator--(){x--;return *this;}
A operator--int){A a(x-=2);ret
原创力文档

文档评论(0)