me could use SetConsoleCursorPosition and other function from windows.h to implement gotoxy and setting console background and foreground color in c or c plus plus
SetConsoleCursorPosition