Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
Errors
khuramsyal
Mar 16 2004 2:15 AM
1.7k
Reply
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]
)
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Docking an Application on the Desktop
Xml in C#