gpt4 book ai didi

c++ - 自动变量的值初始化

转载 作者:行者123 更新时间:2023-11-30 03:03:29 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
non-copyable objects and value initialization: g++ vs msvc
Value-initializing an automatic object?

考虑以下语句:

It's not really possible to value-initialize an automatic object.

这个说法是真的吗?我认为这样做没有问题:

int main()
{
int i = int();
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com