How do I write the function defintion for the following

Hi, I need to write the compiler generated statement, function prototype and the function definition for the following. I have written the first two but i'm stumped about how to write the function definition properly. Here is the question/statement

Write an overloaded >> operator function for the class to input a money object in the form ##.##

I have already wrote:
1
2
3
4
5
6
7
compiler generated statement:
Operator>>(cin, M2)

Prototype:
istream&operator>>(istream&in, money, &Robj)



So how do I do the last? Please and thank you
LOL we're in the same class.

Sad to say I was looking up how to do the same thing. Ugh this homework.
It's this by the way. :)



In >> robj.dollars;
In.ignore();
In >> robj.cents;
Return in;
Topic archived. No new replies allowed.