Velocity Reviews

Velocity Reviews (
-   C++ (
-   -   Input Operator >> Does not work in Visual C++ 6 (

Paul 06-25-2003 02:30 PM

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:
ifstream mystream; ("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,


Karl Heinz Buchegger 06-25-2003 11:07 PM

Re: Input Operator >> Does not work in Visual C++ 6

"MiniDisc_2k2" <> 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.

Thank you

Karl Heinz Buchegger

All times are GMT. The time now is 10:24 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.