how can i use graphics in c++ output?

Recommended Answers

All 2 Replies

You ask your operating system to show graphics on screen, using your operating systems provided libraries.

You can either do it directly yourself, or you can get another set of libraries to do it for you, and you ask those libraries.

C++ specifies nothing about graphics. It's all dependent on your operating system.

If you are using Windows you'll need to know about HDC (device contexts)

If you are using MFC Windows you can use CDC (class version of HDC).

You'll then use functions like MoveTo (x,y) and LineTo(x1,y1) etc.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.