#include <graphics.h> problem

So i have a problem when testing other peoples code. I wanted to use this "simple snake game" code but i will get an error when i build and run the program. the error is #include <graphics.h> for some reason "code::blocks" the program i use to code c++ see's that as an error... any ideas why ? and this goes for other #include <----> stuff...
credits for this game goes to Stefan Friptu, a fellow cplusplus member

Due to forum post size restriction. Here's a LINK to the source code.

http://www.cplusplus.com/articles/i2zyhbRD/
Second line of the article:
**: You must compile it in TurboC3/Borland C++ 3.1 or another compiler what
supports GRAPHICS.H Header

Also, those compilers are out of date, don't use them, I'm going to assume your using gcc with code::blocks which is fine. I wouldn't take that snake game as the proper way to do anything.
Last edited on
Topic archived. No new replies allowed.