Hey everyone,
I'm trying to create a string inside a class, but for some reason, my compiler is not recognizing:
class ob {
string name("Name");
public:
//code
}
error C2059: syntax error : 'string'
This class is being written in a header file, which has #include <string>.
Now, when I use the same code in my main() file, it works fine.