I have been working ona string class, and I need to overload the input operator ( >> ) and the getline() function. I was given stubs for the project, but I still don't know exactly where to start. Any help is much appreciated...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
istream& operator>>( istream& In, String& A )
{
char X[128];
In >> X;
if(In.good())
{
A = X;
}
return In;
}
istream& getline( istream& In, String& A, char B )
{
return In;
}