+ -
当前位置:首页 → 问答吧 → 为什么说error C2061: syntax error : identifier 'string'????

为什么说error C2061: syntax error : identifier 'string'????

时间:2011-08-14

来源:互联网

#ifndef _COLLECTION_H_
#define _COLLECTION_H_
#include<list>
#include<string>
class collection
{
private:
public:
void add(string);
void remove(int);
void clear();
void dispaly();
bool read(string);
bool write(string);
};
#endif

作者: pretty__boy   发布时间: 2011-08-14

using namespce std;
试试

作者: Demon__Hunter   发布时间: 2011-08-14

引用 1 楼 demon__hunter 的回复:
using namespce std;
试试

++

作者: ljljlj   发布时间: 2011-08-14

引用 1 楼 demon__hunter 的回复:

using namespce std;
试试

++

作者: zxb708   发布时间: 2011-08-14

引用 1 楼 demon__hunter 的回复:

using namespce std;
试试

++
或者在所有的string前面加上"std::"

作者: pathuang68   发布时间: 2011-08-14

热门下载

更多