delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/11/10:11:26

From: "Terje" <pingping AT start DOT no>
Newsgroups: comp.os.msdos.djgpp
Subject: ScreenPutString or ScreenPutChar
Lines: 20
Organization: None
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Message-ID: <QFxh6.3297$xT3.91177@news1.oke.nextra.no>
Date: Sun, 11 Feb 2001 15:52:26 +0100
NNTP-Posting-Host: 130.67.203.166
X-Complaints-To: news-abuse AT nextra DOT no
X-Trace: news1.oke.nextra.no 981903088 130.67.203.166 (Sun, 11 Feb 2001 15:51:28 MET)
NNTP-Posting-Date: Sun, 11 Feb 2001 15:51:28 MET
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello, Im writing a little program which draws a line of ASCII, so which of
the following would be best to use for a line like that or something else
perhaps.
for(x=1;x<34;x++)
 {
      ScreenPutChar(219, color, x, 2);
 }
or
char array[80]={NULL};
for(x=1;x<34;x++)
{
    array[x]=219;
}
ScreenPutString(array, color, 1, 2);

Regards

Terje.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019