Use C instead of C++ for early lessons

Since we're not using any of the object-oriented features of C++ in our early lessons, it doesn't make sense to use C++ for them.  I've just changed the I/O functions to their stdio.h equivalents.