以下代码中,构造函数被调用的次数是1次。
class Test { public: Test() { cout << "T "; } }; int main() { Test a; Test b = a; }
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。