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删除。