This shows you the differences between two versions of the page.
|
c:conio.h:wherex [2013/02/03 16:51] 158.181.88.241 |
c:conio.h:wherex [2024/02/16 01:05] (current) |
||
|---|---|---|---|
| Line 14: | Line 14: | ||
| { | { | ||
| int x; | int x; | ||
| - | printf("The answer is almost 42"); | + | printf("The answer is almost 42\n"); |
| x = wherex(); | x = wherex(); | ||
| printf("horizontal cursor position from where this text appears = %d\n",x); | printf("horizontal cursor position from where this text appears = %d\n",x); | ||
| Line 22: | Line 22: | ||
| ===== output of wherex example ===== | ===== output of wherex example ===== | ||
| - | horizontal cursor position from where text appears is 0 | + | The answer is almost 42 |
| + | horizontal cursor position from where text appears = 1 | ||
| + | |||
| + | {{:c:conio.h:wherex.png?nolink|}} | ||