c++使用scanf加上什么头文件
时间: 2024-04-25 19:22:01 浏览: 96
c++的头文件
在C++中使用scanf函数需要包含<stdio.h>头文件。\[2\]
#### 引用[.reference_title]
- *1* *3* [C++知识精讲7——scanf函数基本用法及实战运用(外加一点点比赛经验,非常实用)](https://blog.csdn.net/djfihhfs/article/details/126328224)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [C++scanf和printf](https://blog.csdn.net/weixin_54707168/article/details/126194820)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文