gpt4 book ai didi

c++ - 指针本身如何使它为 NULL?

转载 作者:行者123 更新时间:2023-11-27 22:52:22 24 4
gpt4 key购买 nike

<分区>

Obj *obj = new Obj();
obj->destroy();
if (obj == NULL)
cout << "yes";

如何编写输出"is"的方法“destroy()”?

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