I am writing a C program for a vending machine and I display the drink types and prices then prompt the user to input a coin (integer) then repeat until they enter '0'. After each coin is inserted the credit must be displayed on screen.
What I was wondering was if there is a way of placing the cursor up a few lines or clear PART of the screen so that I don't have something like this:
Insert coin: 10
Credit: 10
Insert coin: 5
Credit 15
Insert coin: _
etc etc
I know I could just clear the screen before each insert but I want the prices displayed all the time.
I cannot find anything on it in my books or in the documentation of the compiler...I would greatly appreciate any help
btw Don't flame me for asking how to clear the screenbecause it's not a straight forward clear
oh yeah and I'm using Turbo C.



LinkBack URL
About LinkBacks
because it's not a straight forward clear 



