how do i drow a picter in a console program

I need to know how to drow a image.
like a circle.
Do you have eny ideas?
If you need to draw a shape for any reason it's probley best to use a graphics lib. Also correct me if I'm wrong, but I do believe that the compiler has a graphics header file, unfortunatly(if I remember correctly) it's highly frowned upon.
the compiler


Which one? And no, by default C++ doesn't have any graphics functions. Though you can get such functionality through external libraries.
The graphics library SFML can draw circles. Of course, that's for windowed applications, not console ones. However, I don't think it's possible to do much graphical stuff in the console anyway.

http://www.sfml-dev.org/
IEEEEEEE! win32 prgrams are hard to make. It's to bade that you cant use
it in a console praogram.
http://cplusplus.com/forum/articles/28558/

Its true. Using graphics libraries is much easier than you think, they just feel different from console programming at first, but it'll become natural after a bit.
Which one? And no, by default C++ doesn't have any graphics functions. Though you can get such functionality through external libraries.


Sorry, I just looked around, and found out that the "graphics.h" header is indeed no longer supported.


source: http://www.daniweb.com/software-development/cpp/threads/17709
Last edited on
closed account (D80DSL3A)
You CAN use SFML in a console program. The introductory tutorials at their site show how to do this.
Use the link above to go to the site. This link goes straight to a tutorial for creating a SFML window in a console environment (with v1.6): http://www.sfml-dev.org/tutorials/1.6/window-window.php

SFML is awesomely easy to use. I'd recommend it, especially if you will be doing mainly 2D graphics.
It also supports openGL so you can do 3D graphics with it as well.
Topic archived. No new replies allowed.