Overloading operator>> and getline()

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;
}



THANKS in advance
You've probably finished it by now, but I'm doing the same thing, I'm having a problem with my getline(). This is the thread:
http://www.cplusplus.com/forum/beginner/9577/
Topic archived. No new replies allowed.