From 5cb86cab75ec81c43486793fa5001533068cd5d5 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 5 May 2023 11:30:47 +0100 Subject: [PATCH] deuxieme --- gotoxy.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/gotoxy.c b/gotoxy.c index fa3d4dc..465f2a4 100644 --- a/gotoxy.c +++ b/gotoxy.c @@ -4,19 +4,20 @@ // Permet de positionner le curseur de souris sur l'écran à l'endroit // de coordonnées x,y -void gotoxy(int x, int y) -{ - HANDLE hConsoleOutput; - COORD dwCursorPosition; - fflush(stdout); - dwCursorPosition.X = x; - dwCursorPosition.Y = y; - hConsoleOutput = GetStdHandle(STD_OUTPUT_HANDLE); - SetConsoleCursorPosition(hConsoleOutput,dwCursorPosition); -} +void gotoxy(int x, int y) +{ + HANDLE hConsoleOutput; + COORD dwCursorPosition; + fflush(stdout); + dwCursorPosition.X = x; + dwCursorPosition.Y = y; + hConsoleOutput = GetStdHandle(STD_OUTPUT_HANDLE); + SetConsoleCursorPosition(hConsoleOutput,dwCursorPosition); +} -// Pour effacer l'écran +// Pour effacer l'écran void clrscr() -{ - system("cls"); -} +{ + system("cls"); +} + fyjxfugddkutkustktkuti