This shows you the differences between two versions of the page.
|
c:conio.h:gotoxy [2015/08/10 04:57] 122.52.123.215 [description of gotoxy] |
c:conio.h:gotoxy [2024/02/16 01:05] (current) |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| </code> | </code> | ||
| + | ==== description of gotoxy ==== | ||
| + | places cursor at a desired location on screen. | ||
| + | <code c> | ||
| + | #include<stdio.h> | ||
| + | #include<conio.h> | ||
| + | |||
| + | int main( void ) | ||
| + | { | ||
| + | int x, y; | ||
| + | x = 42; | ||
| + | y = 42; | ||
| + | clrscr(); | ||
| + | gotoxy(x, y); | ||
| + | |||
| + | printf("gotoxy jumps to cursor position x42 y42."); | ||
| + | |||
| + | getch(); | ||
| + | return 0; | ||
| + | } | ||
| + | </code> | ||
| ===== output of gotoxy c example ===== | ===== output of gotoxy c example ===== | ||
| {{:c:conio.h:gotoxy.png?nolink|gotoxy example output in cmd}} | {{:c:conio.h:gotoxy.png?nolink|gotoxy example output in cmd}} | ||