首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

string does not name a type,该如何处理

2012-03-29 
string does not name a type#includestring过了。。以前没遇到过 今天肿么出这种问题??[解决办法]#includ

string does not name a type
#include<string>过了。。以前没遇到过 今天肿么出这种问题??

[解决办法]
#include <string>
using namespace std;

这样就可以了
[解决办法]
同楼上,可能是没有引入名字空间吧
或者实用std::string也可以

热点排行