What I want to do is the be able to basically have the program print a print statement with variables in it after a cls mutiple times.
ok that doenst make sense but let me explain...
I am working on a console app rpg combat system. At the top I have health bars and energy ect... I have weapons that are fast like automatics that attack you mutiple times in on turn. Each ATTACK I want to cls the screen to update my health bars so it looks more action oritientated.
Well I want to print something like this for each multiple instance:
well easy... but i dont understand how I cold do it the way i want to! I want it to printf this after every attack, but the problem is that every attack will have to cls the screen to update the health bars. But cls'ing the screen would mean the previous printfs are gone! So how do I KEEP all previous printf's as I cls the screen and print new ones?Code:printf("%s attacked you for %d pts of damage!",cpuName,damage);