Besides syntax what is the difference functionaly of the stdio.h( printf and scanf) vs the iostream.h (cout and cin) commands?
I'm taking a C course right now(I've taken very very intro C++ class before) and I cant stand these printf/scanf statements. I like the cout/cin better.
Take the following code example:
printf("The number you entered was %i", X);
cout<<"The number you entered was"<<x;
maybe it's just me but I like the ladder better. It seems much eaiser and less prone to typing mistakes.
If C++ is a better C why even bother with the 30 year old C language?