English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

either u dont have a library called graphics.h or else vc++ has a corrupted copy. i have not used vc++ but i have used turbo c++ graphics library and i know that that library is not available in vc++ so if r trying to port a program there directly it will not work. the turbo c++ graphics library is only in turbo c++ not in vc++.

good luck.

2007-02-20 07:07:35 · answer #1 · answered by k_electron 2 · 1 0

the easiest way is to copy the graphics.h file into yuor project's directory.
the other way is to add the directory of the file to the VC++ by doing the following:
1- Tools > Options > directories
2- click the new button and point to the directory.
now VC++ will look in that directory too whenever it doesn't find an include file.

2007-02-20 08:45:47 · answer #2 · answered by k_dehairy 1 · 0 0

If you are indeed talking about graphics.h in turbo c++ 3.0, it won't work. The vc++ compiler (assuming 6.0 or >) will only reflect the latest standards. More over the graphics.h or using .h for header includes is deprecated. If you are interested in graphics in windows itself, my suggestion is look up the gdi - graphical device interface.

2007-02-20 17:20:16 · answer #3 · answered by deostroll 3 · 0 0

faster C will be utilized for operating pics classes in C or C++...interior this technique there's a technique observed as initgraph() and also you want to set the route of BGI as an arguement there... ie. For eg: int gddriver=locate,gmode,errorcode; initgraph(&gddriver,&gmode,"d:studen... you should specify the area of BGI on your equipment for this and then you'll run software in favourite way...

2016-12-04 10:28:32 · answer #4 · answered by ? 4 · 0 0

fedest.com, questions and answers