how to use gotoxy function instead of clrscr
问题 Doing first project and it's tetris; Now I'm doing the animation part, but I have a problem with clearing the screen, I've tried : void clrscr() { system("cls"); } It worked but it kept flashing the screen, is there a way using gotoxy function instead of clrscr on same purpose? I'm using windows console system 32, on visual studio 2008. 回答1: system("cls") executes a shell command to clear the screen. This is tremendously innefficient and definitievly not for game programming. Unfortunately