Joke Collection Website - Bulletin headlines - How to Input Coordinates in C Language

How to Input Coordinates in C Language

There are usually two ways to enter coordinates. The first way is to use gotoxy and gets, first jump to the specified coordinates to output information, then output the user name at the specified coordinates, then jump to the specified coordinates to input information, and finally enter the user name, where name is the defined character array. The second method moves the cursor to the specified position: gotoxy(x, y) moves the cursor to the specified row y and column X. Set the cursor to the specified position of the text screen, where the parameters x and y are the coordinates of the text screen.