Input Operator >> Does not work in Visual C++ 6
I am a beginner programmer in Visual C++ 6 and have encountered a
I am trying to read from a text file in the following manner:
mystream.open ("filename", ios:in);
I have checked all of my #includes and I do have fstream and iostream
yet I get the following error during compile:
"error C2678: binary '>>' : no operator defined which takes a
left-hand operand of type 'class ifstream' (or there is no acceptable
Here is a couple of interesting observations:
cin>>thedata; // does not compile either
cout<<somedata; //compiles with no problems
This is a dialog-based MFC application I am developing.
Any help on this matter would be great.
Thank you in advance,
Re: Input Operator >> Does not work in Visual C++ 6
"MiniDisc_2k2" <MattDelB@cox.net> schrieb im Newsbeitrag
Please refrain from MFC solutions in this newsgroup.
This NG is about standard C++ and how to use that.
No third party libraries since standard C++ is a big
enough topic on its own.
Karl Heinz Buchegger
|All times are GMT. The time now is 01:50 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.