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
相關文章
相關標籤/搜索