Okay I'm trying to understand how to "refresh" or "clear" the screen in a C program.
I'm not sure if I'm describing what I'm trying to do well, so here's what I mean:
So far all I know how to do is outprint more under what I've outprint. For example:
Okay, well, as one could see all the program is doing is outprinting more program after previous program. What I'm looking to do is:Code:printf("Print 1 statement\n"); printf("Print 2 statement\n"); printf("Print 3 statement\n"); And that would do the following in the comand promt when I run: Print 1 statement Print 2 statement Print 3 statement
Where each print statement is said, then erased, then the next is said in the same position of the previous. Is there a way to do this?Code:And the command promt do this: Print 1 statement *erases command promt back to "empty"* Print 2 statement *erases command prompt back to "empty"* Print 3 statement
My "knowledge" of C is limited up to chapter 8 of my book (arrays) so I don't have a deep understanding of programming relative to many...otherwise I would probably have a solution for this myself.
Please help if you can. Thanks.