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   问题就解决了

相关文章:

  • 2022-01-14
  • 2022-01-21
  • 2021-04-15
  • 2022-01-13
  • 2022-12-23
  • 2021-09-19
  • 2021-07-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
相关资源
相似解决方案