English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i really hate gotoxy it makes my nose bleed.
how many rows and colums there in gotoxy?
i make a program that will output the all ascii code
Heres the code:

int a;
clrscr();
for(a=1;a!=255;a++)
printf("the value of %d is %c",a,a);
//
My problem is how can i use gotoxy here?
i want all the ascii code will appear on screen in colum,not pressing down the cursor to view all the ascii code.

hope u can help me tomorrow is our exam i need to understand this one.
thanks a lot.

2007-01-30 19:11:09 · 2 answers · asked by dxterz 1 in Computers & Internet Programming & Design

2 answers

gotoxy(x, y) sounds like it positions the cursor at row x, column y, so you can use the variable a to position at a new row (as long as y represents a character row and not a pixel row. If it represents a pixel row, you'll have to multiply 'a' by the size of the row in pixels).

int a;
clrscr();
for(a=1;a!=255;a++)
   {
   gotoxy(1, a);
   printf("the value of %d is %c",a,a);
   }

2007-01-30 19:29:43 · answer #1 · answered by rongee_59 6 · 1 0

i need the full code of your program to put xy..

2007-01-30 19:20:38 · answer #2 · answered by aRnObIe 4 · 0 0

fedest.com, questions and answers