Which is Which?

Hello everyone.. I use Dev C++ from Bloodshed... and i have this very well not really that big.. but for me it's very weird question.. for myself.. i study BSCS(Bachelor of Science in Computer Science) and we are using C++ and im not that really familiar with C languages yet.. But when I ask Google or mostly any Forum or anything.. for Help.. in the internet.. theres cin<< instead of scanf("%d", &num) something.. and cout>> instead of printf("something").. i know there are different C languages.. but when i still specify that its C++ when i search it in google.. its still comes out as cout>> or cin<< and i dont get it.. i know i can represent it somehow.. or convert it in my mind but thats just that.. but when it comes to char and string its different it Dev C++ from bloodshed that we are using there is no string but there is only char in Dev C++ from bloodshed.. So yeah... i just wanna clear this out.. that's all..
scanf() and printf() are C functions for performing I/O. cin and cout are C++ object that perform I/O.

C++ tries to be mostly backwards compatible with C, so of course you can use scanf() and printf() if you want, though most will recommend if you're using C++ and don't have a good reason to use the C functions, then just stick the C++ way of doing things.
Two comments. if you want to understand C++, a good starting point is the tutorial on this site: http://www.cplusplus.com/doc/tutorial/

Secondly, Bloodshed DevC++ is obsolete, it was last updated in 2005, which is an eternity in compiler terms. Instead consider Code::Blocks or Orwell Dev-C++

http://www.codeblocks.org/
http://orwelldevcpp.blogspot.com/
Last edited on
okay thank you for your replies :) it was a big help
Topic archived. No new replies allowed.