new和delete的头文件
时间: 2023-10-21 10:21:19 浏览: 245
new和delete的使用都不需要特定的头文件。new是C++中的关键字和运算符,可以直接使用,不需要引入头文件。而delete是C++中的关键字,也不需要引入头文件。所以,在使用new和delete时,不需要特定的头文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [C++ New和Delete](https://blog.csdn.net/Ctrl_C_V_is_easy/article/details/128491485)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [C++笔记之new与delete](https://blog.csdn.net/weixin_49778601/article/details/123959729)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文