c++ error: ‘strcpy’ was not declared in this scope 解决方式

今天作c++,做业。用到了strcpy 我已经使用了这个头文件(c++程序设计那本书里面说的须要的) #include 可是报错 error: ‘strcpy’ was not declared in this scope 而后 我在网上找到告终果 解决方法: 一:只使用一个头文件c++ #include <cstring > 二:使用两个头文件web #include <string> #i
相关文章
相关标签/搜索