How do I make a program in standard C which uses graphics.h. What I mean is, how do I run a code that includes graphics.h in the header file. For some reason Visual Studio doesn't accept this and outputs some error. Can Someone please help?
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
Not the answer you are looking for? Search for more explanations.
What specific version and what is the error your getting?
It is my understanding that Microsoft Visual Studio does not have a 'graphics.h' file. With
"#include "graphics.h" you include a header file of a library into your code, but the header file must be in the include paths associated with Visual Studio. You can set additional include paths in the project properties within Visual Studio by right clicking on project in the project explorer and going to Properties ->Additional Include directories.
Even then, I'm not sure if it will successfully support the file. Only trial and error will tell.
Okay, so say I was to run the code from this website: http://www.c.happycodings.com/Games_and_Graphics/code31.html
It has the header file graphics.h, does that still mean it won't work in Visual Studios?
I don't see the "graphics.h" file on that website. I can see the main source, but "graphics.h" is only included--the source itself is not provided.
The only way I could tell you that would be to get a hold of the "graphics.h" source file and try it out.
What i'm trying to say is that it's included in the code. If I had the graphics.h source file, how would I get it to still work in visual studios. Or would the graphics.h source file not be enough? Would It require some other files?
Is there something else that is used in Visual studios that allows graphic programming?
If you have the "graphics.h" file, you would do as I suggested in one of the answers above. I've quoted it for you again here:
""#include "graphics.h" you include a header file of a library into your code, but the header file must be in the include paths associated with Visual Studio. You can set additional include paths in the project properties within Visual Studio by right clicking on project in the project explorer and going to Properties ->Additional Include directories."
However, this does not ensure that it will work. You simply need to try it and see.