Errors

Mar 16 2004 2:15 AM
Can anyone please help me with a compiler error I'm getting, class Card{ public: ........... friend istream& operator>> (istream&, Card&); }; //then later on in the program istream& operator>> (istream& in, Card& c){ int num; Suite s; string ch; in >> num >> ch >> s; c.nmbr= num; c.ste= s; return in; } //The error is something like this: Card.h: In function `class istream & operator >>(istream &, Card &)': Card.h:185: initializing non-const `int &' with `Suite' will use a temporary /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0e/2.95.3/include/g++/iostream.h:206: in passing argument 1 of `istream::operator >>(int &)' Please help me, Thank You, K.S. ([email protected])

Answers (1)