Thread: anyone know C?
View Single Post
  #19  
Old 01-13-2010, 09:49 PM
Matt L Matt L is offline
Registered User
 
Join Date: Oct 2005
Posts: 4,263
I've been programming in C for over twenty years, and C++ for nearly as long. They've both become different languages since I started using them.

Quote:
In current C standard output libraries [ #include ], you usually just specify a newline '\n' and the appropriate sequence is automagicly written to the output.
There's also fflush(stdout) if you want to be sure that part of a line makes it to the terminal. Printing a '\n' automatically flushes the output.
Reply With Quote