| | |
Need help setting up graphics
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2004
Posts: 10
Reputation:
Solved Threads: 0
Hello, my name is Jonathan and I am a beginner programmer in my first year of studies. I am using a Turbo C++ editor and I'm trying to set up graphics. The problem is I'm not sure how. Here's how i was taught to set up graphics:
#include <graphics.h>
int main()
{
int graphmode;
int graphdriver = DETECT;
intitgraph (&graphdriver, &graphmode, "C:\\BGI");
Im not sure if im doing the part in quotes right...
So... can anyone please find my error? The big thing is the compiler doesnt include graphics.h
#include <graphics.h>
int main()
{
int graphmode;
int graphdriver = DETECT;
intitgraph (&graphdriver, &graphmode, "C:\\BGI");
Im not sure if im doing the part in quotes right...
So... can anyone please find my error? The big thing is the compiler doesnt include graphics.h
•
•
•
•
Originally Posted by Emmitt310
The big thing is the compiler doesnt include graphics.h
Then, you should write
C++ Syntax (Toggle Plain Text)
intitgraph (&graphdriver, &graphmode, "C:\\BorlandC\BGI");
•
•
•
•
Originally Posted by Emmitt310
Hello, my name is Jonathan and I am a beginner programmer in my first year of studies. I am using a Turbo C++ editor and I'm trying to set up graphics. The problem is I'm not sure how. Here's how i was taught to set up graphics:
#include <graphics.h>
int main()
{
int graphmode;
int graphdriver = DETECT;
intitgraph (&graphdriver, &graphmode, "C:\\BGI");
Im not sure if im doing the part in quotes right...
So... can anyone please find my error? The big thing is the compiler doesnt include graphics.h
like this for example
initgraph(&gd,&gm,"c:\\tc\\bgi");
first find the correct location of the files. If you donnot get the graphics.h then reinstall the turboc++.
![]() |
Similar Threads
- Allegro 4.2.2 problems (C++)
- What is the cheapest graphics card that will run Fallout 3 on the highest setting? (Monitors, Displays and Video Cards)
- Help for comparing strings and copying strings please. (C++)
- Jerky Graphics (Networking Hardware Configuration)
- Graphics In Pixel: Part II (C++)
- How to get an extra boost from your graphics card. (Windows tips 'n' tweaks)
Other Threads in the C++ Forum
- Previous Thread: Converting Hexadecimal characters to integers.
- Next Thread: A little Help
| Thread Tools | Search this Thread |
api array arrays based beginner binary c++ c/c++ calculator char class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





