cin still an undeclared identifier

Started by
1 comment, last by RanmaruX 18 years, 10 months ago
I had the same problem with <fstream.h> as this guy. http://www.gamedev.net/community/forums/topic.asp?topic_id=200486 I used <fstream> instead and added: using namespace std; But now .NET gives me errors saying cin and cout are undeclared identifiers. Can anyone help?
Advertisement
shouldnt u use <iostream> ?
Ah thanks. It's because <fstream.h> used to include iostream already... I've just included <fstream> and <iostream> seperately and it's fine now.

This topic is closed to new replies.

Advertisement