Mail Archives: djgpp/1996/07/11/03:30:27
In a previous article, eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) says:
>
>On Mon, 8 Jul 1996, Sxren Merser wrote:
>
>> Do anyone know why 'gotoxy(int x, int y)' dosn't work.
>> It just doesn't move the cursor correct? The coordinates is within
>> screen limits.
>> The program works just fine when compiled with Borland 5.0 (16-bit
>> and Win32).
>
>Please post the source of the shortest program you can devise that
>exhibits the problem. `gotoxy' works for me just fine, but it might fail
>in some specific situation.
>
I'm having the same problem. Below is a similar code fragment to what
I was using. On my system it fills the screen and then scrolls.
Compiled with another compiler it works fine. If this still works,
let me know and I'll send the actual program in email.
#include <conio.h>
#include <stdio.h>
int x,y;
main(){
for(x=0;x<256;x++){
for(y=0;y<256;y++){
gotoxy(1,1);
printf("%d %d",x,y);
/* in my program I did some math here */
}
}
}
--
PGP key available
keyID=148DF819 fingerprint=1A 6F 0C 7F 79 1E 87 8F 86 C2 DF D4 3A CA 8A 3F
- Raw text -