DIGIT-ARC read-only archive · snapshot: July 23, 2026

graphic in c++

9 posts · originally from https://geek.digit.in/community/threads/graphic-in-c.20718/

S
shivi4 Original post #1
Dec 20, 2005 at 10:37 PM
please some tell me how to use graphics in c++

can someone suggest sites for basic graphic learner
C
calvin #2
Dec 21, 2005 at 10:24 AM
checck out this link dude:
*www.freeprogrammingresources.com/cppgraph.html
B
Baroon #3
Dec 22, 2005 at 2:08 AM
If your intention is to make game, then move to directx library or OpenGL library for 2D & 3D graphics creation. You could find directX SDK on microsoft site with documentation and the same can be found for OpenGL through google search.

All these only help, if you have very sound knowledge of C++. :)
S
shivi4 #4
Dec 22, 2005 at 6:01 PM
i want some thing list of basic commands

header file,function and their use


like initgraph,setline etc
kalpik
kalpik #5
Dec 22, 2005 at 7:12 PM
Just check into the help file! Its the best reference anyone can give you. It got examples too!

The header file is "graphics.h" That should get you started!
puja399
puja399 #6
Dec 22, 2005 at 7:19 PM
shivi4 said:
i want some thing list of basic commands

header file,function and their use


like initgraph,setline etc

Those r extinct functions like dinosaurs!!! I guess u r using Windows, and u r already in graphics mode, u don't need initgraph.

I suggest u learn basic C++ first, like classes, polymorphism, inheritence, namespace, templates, exceptions, standard library (STL), and of course, algorithms.....(oh, so many things..!!!!), then u learn Win32 API (then some MFC perhaps, if u happen to like it), and then (at the last) learn graphics programming (with OpenGL, or DirectX/SDL). Even if u do graphics with plain Windows GDI, it will be a lot useful than those 'initgraph' things, and fun too.... 8) 8) 8)
S
shivi4 #7
Dec 23, 2005 at 8:41 PM
i am using turbo c

so i need graphic for my project

like creating table ,menu etc
puja399
puja399 #8
Dec 23, 2005 at 9:08 PM
Why do u need graphics for creating tables and menus? U can do it by printing extended ASCII characters, u can draw boxes, blocks etc., and even create windows with them. (The TC-IDE itself is created that way.)

BTW, r u forced to use TC++?? if not, then use Dev-C++. TC++ doesn't support ANSI C++ which is the modern C++ standard, and its also not written for Win32 platform.
M
Dec 23, 2005 at 10:56 PM
If u know ur c++ basic well then i don't think u can have any difficulty in learning graphicd under c++.You can learn basic drawing by first using 'graphics.h' as a header file and u can use the library functions for circle,rectangle,etc.. in the compilers help menu(if u r using turbo compilers)
for details u can use object oriented programming in c++ by ROBERT LAFORE,all graphics c library functions also works in c++.