C++ printf 头文件
时间: 2023-09-25 15:11:18 浏览: 120
在C++中,printf函数是C语言中的输出函数,它位于<stdio.h>头文件中。然而,在C++中,更常用的是使用cout来进行输出,它位于<iostream>头文件中。所以在C++中,如果你想使用printf函数,你需要包含<stdio.h>头文件。
#### 引用[.reference_title]
- *1* [C++头文件与实用笔记](https://blog.csdn.net/XiaoFengsen/article/details/123333758)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [C/C++头文件](https://blog.csdn.net/qjworkman/article/details/120633311)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [C++中的 cout 和 printf 用法](https://blog.csdn.net/alal001/article/details/130744525)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文