Programmer Question
Whenever I try to create a string in my header file I get the error: 'string' is not a member of 'std'. I am using the Microsoft Visual c++ express 2010 compiler. Here is my header file:
using namespace std;
class Person
{
private:
 string name;
 string p_number;
public:
 Person();
 Person(string, string);
 string get_number();
 string get_name();
};
I am a decent java programmer who just started learning c++
Find the answer here
 
No comments:
Post a Comment