1.error: ‘strlen’ was not declared in this scope
方案:#include<cstring>//**<string.h>是不包括strlen的,要使用cstring**
2.error: size_t has not been declared
據說這是因為在Linux系統下g++沒有C++的size_t
方案:需要在需要到size_t的文件中加入頭文件 stdlib.h 問題就解決了
1.error: ‘strlen’ was not declared in this scope
方案:#include<cstring>//**<string.h>是不包括strlen的,要使用cstring**
2.error: size_t has not been declared
據說這是因為在Linux系統下g++沒有C++的size_t
方案:需要在需要到size_t的文件中加入頭文件 stdlib.h 問題就解決了
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。