What’s the output of&n...
发布于 2022-03-03 17:31:27
下面代码段的输出为()
#include "stdio.h" class A { public: A() { printf("1") } A(A &a) { printf("2") } A &operator=(const A &a) { printf("3") return *this } } int main() { A a A b = a }
登录后免费查看答案
关注者
0
被浏览
20