eclipse中的unordered_set库包含错误

时间:2013-11-18 14:47:34

标签: c++ eclipse stl

我无法在eclipse中编译下面的代码。任何人都可以告诉我可能的原因虽然包含了stl库。

#include<iostream>
#include <unordered_set>
using namespace std;

int main()
{
string str;
unordered_set <string> s;// symbol unordered_set can't be resolved
while(getline(cin,str)) // 
    {
    if(str=="exit")
            {
              break;
            }
    s.insert(str);
    }

return 1;
}

0 个答案:

没有答案
相关问题