Ploting lines in C++

I have code to solve 2D truss structures implemented in C++ (as a console application). I would like to add some simple graphics to it in order to visualize the initial structure and the deformed form. Example: http://people.rit.edu/pnveme/VenkatCOMSOL42/COMSOLTruss2D/ExtractingInfoinMATLAB_01.png

But i have no idea of how to add graphics in any way. How can I implement this kind of graphics?

Thanks.
You'll need a graphics library of some sort, as this sort of thing isn't possible in the console.

Personally, I'd use OpenGL but there's a learning overhead there and it's not particularly friendly. I'd imagine it's possible using some 2D library like SFML. I have limited knowledge of that, though (literally only used SFML for an OpenGL context in the past).

You might even have better luck Googling for C++ graph drawing libraries.
Topic archived. No new replies allowed.