填空题

数据结构分为逻辑结构和存储结构,循环队列属于______结构。

【参考答案】

逻辑
<上一题 目录 下一题>
热门 试题

单项选择题
有如下类声明: class MyBASE { int k: public; void set(int n){k=n;} int get() const{return k;} }; class MyDERIVED: protected MyBASE { protected: int j; public: void set(int m, int n){MyBASE::set(m);j=n;} int get() const{return MyBASE::get()+j;} }; 则类MyDERIVED中保护的数据成员和成员函数的个数是( )。
A.4
B.3
C.2
D.1
单项选择题
有以下程序,在横线应添加( )。 #include<iostream> using namespace std; class TestClass { public: TestClass(int n){number=n;} ______∥拷贝构造函数 ~TestClass(){} private: int number; }: TestClass fun(TestClass P) { TestClass temp(p); return temp; } int main() { TestClass obj1(10), obj2(0); TestClass obj3(obj1); obj2=fun(obj3); return 0; }
A.TestClass(TestClass &other){number=other.number;}
B.TestClass(TestClass other){number=other.number;}
C.TestClass(TestClass &other){number;)
D.TestClass(&other){number=other.number;}
相关试题
  • 以下程序的执行结果是______。#incl...
  • 有如下类声明:class MyClass{int i;pr...
  • 若下面程序运行时输出结果为:1,A,10...
  • 下列函数的功能是判断字符串str是否对称,...
  • 有如下程序:#include<iostream>using ...