You could always post your code, and describe specifically how it's "crashing". Use a debugger or write a signal handler to find out how your program is terminating.

Also, graphics.h is terribly...