@Faxmachinen said:
Oh yeah, and teaching that you should be "using namespace std" is TRWTF.
The instructor might be trying to teach "C++" rather than "good C++" --- as the original author appears to have written his C++ by replacing the include of stdio.h with cstdio in his C code, there are some fundamentals to focus on first...
The "clever" thing about using cstdio rather than stdio.h is that cstdio is supposed to put things in the std namespace, rather than messing up the global namespace. But if the author is dead set on combining "printf should be in the std namespace rather than global" with "I like to call printf as if it's global rather than in the std namespace", then "using namespace std" is an, in the context, reasonably clean workaround for som incredibly silly self-imposed problems... (The "solution" of using a Microsoft compiler under which it works anyway is slightly problematic --- as the code may be graded by someone who doesn't do that...)