填空题
算法复杂度主要包括时间复杂度和
【2】
复杂度。
【参考答案】
空间
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有如下程序: #include <iostream> using namespace std; class BASE public: ~BASE() cout<< BASE ; ; class DERIVED: public BASE public: ~DERIVED() cout<; DERIVED ; ; int main()DERIVED x; return 0; 执行后的输出结果是______ 。
A.BASE
B.DERIVED
C.BASEDERIVED
D.DERIVEDBASE
点击查看答案&解析
单项选择题
有如下程序: #include <iostream> using namespace std; class AA int n; public: AA(int k):n(k) int get() return n; int get()const retnm n+1; int main() AA a(5); const AA b(6); cout <<a.get()<<b.get(); return 0; 执行后的输出结果是______ 。
A.55
B.57
C.75
D.77
点击查看答案&解析
相关试题
多数运算符既能作为类的成员函数重载,也能...
下面是一个栈类的模板,其中push函数将元素...
下列程序的输出结果为2,请将程序补充完整...
非成员函数应声明为类的 【10】 函数才...
请将下列类定义补充完整。 class Base p...