![]() |
![]() |
#1 (permalink) |
Psycho
|
[C++] graphics.h?
I'm very new to C++ so please bare with me.
I just got a textbook from a friend about C++ and it was going fine until it asked me to write a code with the graphics.h header. The problem is this isn't included in Micrsoft Visual Studio and the CD that the book should have had with the file on it can't be found. I've been looking for about 2 days and have come to moderate success. I'm pretty sure I found the source for the header but I have no idea how to make it work in any way. If anyone could give me the file or just tell me how to make it work from the source that would be great. Even if someone suggests another compiler as long as its novice friendly it really doesn't matter. Thanks in advance |
![]() |
![]() |
#2 (permalink) |
I am Winter Born
Location: Alexandria, VA
|
My guess is that the graphics.h file is provided on the textbook publisher's website (as in: it's something that the author wrote), or else in an appendix in the book.
There's no real "one true graphics.h header"
__________________
Eat antimatter, Posleen-boy! |
![]() |
![]() |
#3 (permalink) |
Psycho
|
Thanks for that Pragma. I have no idea why I couldn't think of that myself...
But for some reason when I try to do what the readme file that came with the download, I get an error because I don't have graphics.h. An irony at its best because that is what I'm trying to get to begin with. Anyone have any instructions on how to get it to work with just the .cpp file though? |
![]() |
![]() |
#4 (permalink) |
I am Winter Born
Location: Alexandria, VA
|
Chances are, you're gonna need the .h file - it'd have function prototypes, global variables, macro definitions, etc.
What kind of errors are thrown if you remove the #include "graphics.h" line from the program?
__________________
Eat antimatter, Posleen-boy! |
![]() |
Tags |
graphicsh |
|
|