hey guys im having a bit of trouble making an string accessor to a private member string variable that i have declared:
Class A{
public:
string getname() const;
private:
string name;
};
Thats a little example. I have tried almost everything. I have included string class header in the class but still nothing. Any help would be greatly appreciated!