Classes and libraries

Hello guys,

I created a class (.cpp e .h) and I am having problem to use library string on the class.

I have on .cpp:

1
2
3
4
5
6
7
#include <string>

//then

void myMethod(){
      string myString = "myString";
}


And I keep having the error: Unable to resolve identifier string.

Anyone knows why?

THanks
std::string myString = "myString";
Topic archived. No new replies allowed.