Hack Forums
[C] Undeclared Identifier WTF !? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C] Undeclared Identifier WTF !? (/showthread.php?tid=4585828)



Undeclared Identifier WTF !? - YoungHacker - Dec 15, 2014

hi,
i was/am using VC++ 2010 and getting error 'undeclared identifier' for cin and endl (might be getting for cout too lol) so i used 'std::cin' and i get another error saying 'is not member of std'😭
such BS is the reason why i gave up using VC++ some time back ._. why cant it be as normal as turbo c++ or something
what am i to do? :/

and no i didnt miss <iostream>


* - Trip2nite - Dec 15, 2014

Please post some code.
Will make it much easier.


* - g4143 - Dec 15, 2014

(Dec 15, 2014 04:44 AM)YoungHacker Wrote:  hi,
i was/am using VC++ 2010 and getting error 'undeclared identifier' for cin and endl (might be getting for cout too lol) so i used 'std::cin' and i get another error saying 'is not member of std'😭
such BS is the reason why i gave up using VC++ some time back ._. why cant it be as normal as turbo c++ or something
what am i to do? :/

and no i didnt miss <iostream>

Number one. Why would you be using VC++ 2010? Isn't 2013 out? Oh wait a minute, you are referring to Turbo C++.


* - YoungHacker - Dec 15, 2014

Oh its solved :D
Stupid mistake from my side lol

And if VC++ 13 is out I should use it?
I have no time lol (till march)..and using 10 because I have to


* - 0xDEAD10CC - Dec 15, 2014

(Dec 15, 2014 09:38 AM)YoungHacker Wrote:  Oh its solved :D
Stupid mistake from my side lol

And if VC++ 13 is out I should use it?
I have no time lol (till march)..and using 10 because I have to

No, stick with 2010, it only lacks the support for all of the newer language standards that 2013 has. 🤦‍♂


* - Mouse❤️ - Dec 16, 2014

Now, now dead10cc. He's obviously new.