gpt4 book ai didi

c++ - 新建、删除、malloc、free

转载 作者:太空狗 更新时间:2023-10-29 19:50:20 28 4
gpt4 key购买 nike

newdelete 被称为预处理器,而 mallocfree 是函数。 newdelete 是预处理器是什么意思?

最佳答案

newdelete 是 C++ 运算符(如 +、() 等),而 malloc免费 是 (C) 函数。一些运算符(包括 new 和 delete)可以重载。

关于c++ - 新建、删除、malloc、free,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2983182/

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