I am just begninning C and I was wondering this:
Just like in QBASIC yuo can use the LOCATE y, x function. Is there a
way to do this in C?
This is in the FAQ.
19.4: How can I clear the screen?
How can I print text in color?
How can I move the cursor to a specific x, y position?
A: Such things depend on the terminal type (or display) you're
using. You will have to use a library such as termcap,
terminfo, or curses, or some system-specific routines, to
perform these operations. On MS-DOS systems, two functions
to look for are clrscr() and gotoxy().
For clearing the screen, a halfway portable solution is to print
a form-feed character ('\f'), which will cause some displays to
clear. Even more portable (albeit even more gunky) might be to
print enough newlines to scroll everything away. As a last
resort, you could use system() (see question 19.27) to invoke
an operating system clear-screen command.
References: PCS Sec. 5.1.4 pp. 54-60, Sec. 5.1.5 pp. 60-62.