Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Drawing Curves in VC++

I have got a set of points in the xy plane, i.e. each point has an x intercept and a y intercepy.I want to connect all these points and obtain a cuve/graph.
Can anyone help with a suitable reference?
[203 byte] By [kajal] at [2007-11-11 10:08:38]
# 1 Re: Drawing Curves in VC++
you can draw simple things using opengl or directdraw. You might instead try to use an excel type charting utility to graph the points as you need them. Or you could try the windows GDI. In general C++ does not support drawing so you will want one of the mentioned libraries or similar to do it, or if you only need a rough idea you can try ascii art.
jonnin at 2007-11-11 20:59:26 >
# 2 Re: Drawing Curves in VC++
if you don't want a height quality drawing you can simply join points .. line() .
if it hasn't a big space between dots .. this method will look like as a real chart , the problem only if those dots are height discreet , it will not be a "curve" !
Amahdy at 2007-11-11 21:00:26 >