二级二级C++2010年全国计算机等级考试二级C++模拟试题(2)&笔试部分
题目内容

下面程序的结果是(    )#includeclass test{ private:int num;public:test();int getint() {return num;}~test();};test::test(){ num =0;}test::~test(){ cout<<″Destructor is active″<<ENDL;}< p>void main(){ test x[3];cout<<″Exiting main″<<ENDL;}< p>

2024-07-09

A.Exiting is acticeDestructor is activeDestructor is activeDestructor is active

B.Exiting mainDestructor is activeDestructor is active

C.Exiting mainDestructor is active

D.Exiting main

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端