User Tools

Site Tools


c:conio.h:gotoxy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:conio.h:gotoxy [2015/07/22 12:43]
112.203.138.3 [description of gotoxy]
c:conio.h:gotoxy [2015/08/10 09:45] (current)
Daniel Gohlke old revision restored (2015/07/30 00:10)
Line 10: Line 10:
 <code c> <code c>
 #include<stdio.h> #include<stdio.h>
-main()+#include<conio.h> 
 + 
 +int main( void )
 { {
- clrscr; +   int xy
- gotoxy("1,1"); +   x = 42
- printf(" |mmh   |mmd  hmm+  `mmm    +mmmmy"); +   y = 42
- gotoxy("1,2")+   clrscr(); 
- printf("+MMm   +MMN  dMM+  `MMM    dMNMMN`")+   gotoxy(xy);
- gotoxy("1,3"); +
- printf("+MMm   +MMN  dMM+  `MMM   .MMydMM|")+
- gotoxy("1,4"); +
- printf("+MMm```+MMN  dMM+  `MMM   oMM|+MMh"); +
- gotoxy("1,5"); +
- printf("+MMMdddmMMN  dMM+  `MMM   mMN`.MMM`"); +
- gotoxy("1,6"); +
- printf("+MMNooohMMN  dMM+  `MMM  -MMh  dMM+"); +
- gotoxy("1,7"); +
- printf("+MMm   +MMN  dMM+  `MMM  sMMy++hMMd"); +
- gotoxy("1,8"); +
- printf("+MMm   +MMN  dMMo  .MMN  mMMNNNNMMM."); +
- gotoxy("1,9"); +
- printf("+MMm   +MMN  |NMNyymMMs -MMh    dMM+"); +
- gotoxy("1,10"); +
- printf(":yys   :yys   -oyhdhs:  |yy:    |yy+"); +
- getch; +
-}+
  
 +   printf("gotoxy jumps to cursor position x42 y42.");
  
 +   getch();
 +   return 0;
 +}
 </code> </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}}
advertising
c/conio.h/gotoxy.1437561807.txt · Last modified: 2015/07/22 12:43 by 112.203.138.3

Impressum Datenschutz