www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/12/12:39:39

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: calculation display in graphic mode
Date: 12 Jul 2002 15:37:42 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 14
Message-ID: <agmt46$mvg$1@nets3.rz.RWTH-Aachen.DE>
References: <agmqka$2ff$1 AT news6 DOT jaring DOT my>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1026488262 23536 137.226.32.75 (12 Jul 2002 15:37:42 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 12 Jul 2002 15:37:42 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Patrick Chen <pck66 AT pd DOT jaring DOT my> wrote:
>       I intend to plot an x-y function curve in graphic mode.
> How to put the scaling numbers on the x and y axes?
> Are there any built-in library function to convert floating values to
> graphic character? 

There's sprintf(), which lets you print floating point numbers into
text strings.  How to display text strings to screen in graphics mode
is a separate adventure.  Every graphics library worth its salt will have
some support for this.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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