include一个定义结构体的文件typedef.h

编译出现了error: 'string' does not name a type

 

查资料http://blog.csdn.net/niro_z/article/details/8028996得到提示,

要在string改为std::string就OK了。

但是这样还是有点别扭,于是这么改

using namespace std;
#include "typedef.h"

就OK了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-28
  • 2022-12-23
  • 2021-10-15
猜你喜欢
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
相关资源
相似解决方案