hi to everybody.
how can i draw a 2d diagram in vc++?
i don't know anything about thath.
please help me.
thanks.
As others have said, you'll need some external library.
The ImageMagick++ library fits nicely with C++
and its standard library:
http://www.imagemagick.org/Magick++/
The following brief program takes coordinates from
the standard input and draws corresponding points
on a GIF image.
Sean
#include <iostream>
#include <Magick++.h>
using namespace std;
using namespace Magick;
int main()
{
int width = 300;
int height = 400;
Image image( Geometry(width, height), Color("white") );
image.strokeColor("red");
// take space-separated (x,y) coordinates
while (cin)
{
int x, y;
cin >> x >> y;
image.draw(DrawablePoint(x, height - y));
}
image.write("dots.gif");
}