读书人

string does not name a type,该如何处

发布时间: 2012-03-29 12:53:12 作者: rapoo

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

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

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

读书人网 >C++

热点推荐