Drawing a line in C++?

okay, so i have been struggling to find a way out of this.
how do you draw a line in VS? knowing that it doesn't have a graphics lib.
i have searched and found some information about GUI/3D.
but isn't there any other way? probably the easy way?
i intend to draw three different lines(passing parameters as length, angle) and then join these line to form a triangle. Any suggestions?

You need to have a graphics library to do that.

http://en.cppreference.com/w/cpp/links/libs

There are others. Google some.
which one do you prefer? (on a easy level)
Did you mean that drawing on .net graphics library? Besides line, if you choose a right image drawing contron within .net graphics application, you are competent to draw image, icon, line, ellipse, path, string, polygon, and many more objects on .net graphics. For the detailed guides, check out the relevant posts.

http://www.rasteredge.com/how-to/vb-net-imaging/image-drawing/

http://www.rasteredge.com/how-to/vb-net-imaging/image-drawing-net-graphics/
Topic archived. No new replies allowed.