二级二级C++全国计算机等级考试 二级C++ 笔试模拟试题(一)
题目内容

下面程序的结果是#include<iostream.h>class test { private:int num;public:test();int getint(){return num;}~test();};test :: test(){ num =0;}test::~test(){ cout<<"Destructor is active"<<endl;}void main(){ test x[3];cout<<"Exiting main"<<endl;}

2024-07-09

A.Exiting mainDestructor is activeDestructor is activeDestructor is active

B.Exiting mainDestructor is activeDestructor is active

C.Exiting mainDestructor is active

D.Exiting main

题目答案

试卷相关题目

最新试卷
热门试卷

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

去 App Store 免费下载 iOS 客户端