Hello, im a college student taking a C++ class and im currently getting my ass handed to me, most likely out of laziness. Right now im struggling to catch up to the class mainly because i cannot teach it to myself. Ive tried many tutorials but they do not seem to use the same sort of dialogue my class uses. Where my class uses printf as a function all the online tutorials i find use cout? Anyways, it always confuses me as i try to watch the youtube tutorials seeing everything done differently. I need help with my homework and i need help finding a new means of teaching myself that uses the same sort of "dialogue" as printf, scanf, fscanf, etc. Please help me i really need to pass this class.
Take a look at C - there you have no cin and cout - this is only available in C++.
Follow this tutorial and you should be in a good shape: http://www.tutorialspoint.com/cprogramming/
This is your chapter: http://www.tutorialspoint.com/cprogramming/c_input_output.htm
thank you soooo much! i think ive been trying to learn C using C++ or something! its just confusing now cause we use maybe a c++ compiler in visual studio but it looks like C. Idk thank you though this helps alot!
C++ is an extension of the original C language - therefore you can use visual studio and a C++ compiler to compile C code in most cases - on the other hand you can use a lot of C functions in C++. Therefore C and C++ are sometimes called C/C++ because they are so close to each other - don't get me wrong: you CANNOT use C++ specific stuff in C and you also CANNOT compile any larger "real" C++ application with a C compiler. From a mathematical perspective:
C < C++
C part of C++
To add to Ohban's answer C/C++ are like father and son. Just think of it that way the father knows alot of old stuff (C), his son knows alot of other stuff (C++). They can work together but only one way cause the son knows about the stuff his father used to do, but the father hasn't got a clue what his son does as he's works on stuff far too new and his dad just doesn't understand it :D.
E.g. C code will compile into a C++ application, but C++ code will not compile into a C application