Mail Archives: djgpp/1999/08/03/22:55:36
| From: | "Pavlos" <trash24379 AT usa DOT net>
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | Re: a problem in a simple program
|
| Date: | Wed, 4 Aug 1999 03:16:29 +0300
|
| Organization: | An OTEnet S.A. customer
|
| Lines: | 28
|
| Message-ID: | <7o80pq$co2$1@newssrv.otenet.gr>
|
| References: | <7o7jb1$etq$1 AT planja DOT arnes DOT si>
|
| NNTP-Posting-Host: | dram-a02.otenet.gr
|
| X-Trace: | newssrv.otenet.gr 933725818 13058 195.167.113.225 (4 Aug 1999 00:16:58 GMT)
|
| X-Complaints-To: | abuse AT otenet DOT gr
|
| NNTP-Posting-Date: | 4 Aug 1999 00:16:58 GMT
|
| X-Newsreader: | Microsoft Outlook Express 4.72.3110.1
|
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
| Reply-To: | djgpp AT delorie DOT com
|
Matej wrote in message <7o7jb1$etq$1 AT planja DOT arnes DOT si>...
>hello,
>i'm sorry to send the source attached, but i couldn't copy it from rhide.
>Well, I don't want the "square" in the third line of running exe. I don't
>know how it is possible for it to draw itself. Someone coud help me,
please?
>Thanks,
>Matej
>
for (int i = 0;i < 80;i++)
{
col(WHITE, WHITE, i, 1, " ");
}
The problem is that col() uses gotoxy() which is 1 based, so when i=0, you
do gotoxy(0, something).
change the for() line to
for (int i = 1;i <= 80;i++)
And plz, don't send executables here. Everyone can rebuild your program from
the source code.
Pavlos
- Raw text -