delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/09/15:16:07

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Text and graphics?
Date: Sun, 09 Aug 1998 15:54:30 -0300
Organization: NBTel Internet
Lines: 23
Message-ID: <35CDF065.82C77D69@unb.ca>
References: <6qhn55$omq$1 AT news DOT cybercity DOT dk> <6qk59l$qof$1 AT news DOT cybercity DOT dk> <35CDB759 DOT 36D13D18 AT cartsys DOT com>
NNTP-Posting-Host: fctnts13c65.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Nate Eldredge wrote:

> Einar wrote:
> What the hey?  `scanf' is for reading, not writing, so obviously you
> can't write anything using it.  Furthermore, it's unlikely to work right
> in a graphics mode; you'll have to use Allegro's features for that.

    As long as you are in an 8bbp mode, printf should work fine.

> If you want to put text on the screen, try `sprintf' followed by
> `textout'.

    Why not just a printf, or cout?  Why call 2 functions when you only need
to call one?

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca



- Raw text -


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