Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Simple C Programming question.

Name: Anonymous 2013-06-21 14:45

OK, let's say I have a simple program that uses the printf function to print out "0 1 2 3" from some sort of increment loop.

When the program finishes printing the numbers, they come out as:

0
1
2
3
-----

Ok. Here's my question: How can I make it so that as the program prints out each number, each previous number is replaced by the newer one. So when the program ends, the only think you'll see on the screen is a "3", instead of "0 1 2 3".

This isn't to say that the previous numbers in front of three weren't displayed. It's just that they were displayed and replaced with the next number so quickly that it's hard for the human eye to see them go by.

Name: Anonymous 2013-07-03 9:55

^H

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List