I think this can be accomplished using the istream& operator>>(istream& entry, string_type& str_type) function (outside the class definition).
My class has two attributes, both of them private: the length of the string and the string created using a pointer to char.
This is my code:
istream& operator>>(istream& entry, string_type& str_type)
for (int i=0; i < str_type.GetLength(); i++) // GetLength is public function that returns the Length of the string.
entry >> str_type.GetValue(i); //GetValue is a public function that returns the char in the position i.
When i try to compile this code i get ambiguous overload for 'operator>>'. ¿¿??
Any help or insight would be greatly apreciated.