填空题
按照逻辑结构分类,结构可以分为线性结构和非线性结构,栈属于______。
【参考答案】
线性结构
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有如下程序: #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 Test( public: Test() cnt++; ~Test() cnt--; static int Count()return cnt; private: static int cnt; ; int Test::cnt=0; int main() cout<<Test::Count()<< ; Test t1,t2; Test*pT3=new Test; Test*pT4=new Test; cout<<Test::Count()<< ; delete pT4; delete pT3; cout<<Test::Count()<<end1; return 0;
A.024
B.042
C.420
D.240
点击查看答案&解析
相关试题
执行下列程序后,输出“*”号的个数是__...
己知下列程序的输出结果是42,请将横线处...
非成员函数应声明为类的______函数才...
若下列程序运行时输出结果为 1,A,10...
下列类定义中包含了构造函数和拷贝构造函数...