James Kanze
11/23/2008 2:12:00 PM
On Nov 22, 2:03 pm, utab <umut.ta...@gmail.com> wrote:
> On Sat, 22 Nov 2008 01:51:19 -0600, Paavo Helde wrote:
> > furqan shaikh <furqa...@gmail.com> kirjutas:
> >> sir how can we use gotoxy() in dev c++ as we do in TC++ .
> >> if it is not present then what is the way to make our own.
> >> by using the combination of ascii codes. to move througout
> >> the screen.
> > Standard C++ does not include such things. A good approach
> > would be to use some portable library, like ncurses.
> In addition, if the ultimate goal is to draw a 2D graph, using
> GnuPlot is a better option... there are even some C++ classes
> freely available on the net to interface it to your code.
I'm not sure what gotoxy() did in TC++, but if it is anything
like the gotoxy() in curses (and "using the combination of ASCII
codes to move throughout the screen" certainly suggests that it
is something similar), then it's not used to draw 2D graphs, but
to position the cursor on the screen. This sort of thing used
to be frequently used to generate masks for input and such. (In
modern code, one would normally use a GUI. But there's still a
lot of mask based code around that needs to be maintained.)
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34