structTest{intaintbTest():a(b),b(3)...
发布于 2022-03-03 16:26:52
struct Test {
int a
int b
Test() : a(b), b(3) {
}
}
Test g_obj
int main() {
Test obj
obj = g_obj
cout << obj.a << " " << obj.b << endl
return 0
}
给定以上程序片段, 描述正确的是: ( ). 备注: 随机值表示该变量的值不能确定, 未定义
登录后免费查看答案
关注者
0
被浏览
3