strcmp函数的头文件 c++
时间: 2023-09-25 21:17:03 浏览: 156
strcmp函数的头文件是<string.h>。 在C语言中,需要包含<string.h>头文件才能使用strcmp函数,否则会出现“error: ‘strcmp’ was not declared in this scope”的错误。 另外,也可以使用<cstring>头文件来包含strcmp函数,因为C的标准库中也包含这个函数。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [C++中strcmp的头文件问题](https://blog.csdn.net/wangdd_199326/article/details/65936475)[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: 33.333333333333336%"]
- *2* [C++ strcmp函数的使用](https://blog.csdn.net/CHUANZExiaodaima/article/details/120544848)[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: 33.333333333333336%"]
- *3* [c++ 面试题 总结](https://download.csdn.net/download/rzvs8275161/1667752)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文