Friday, July 31, 2009

C++ error messages. Help....?

I used these two lines in my code:





initgraph(%26amp;g,%26amp;h,"c:\tc\bgi");


setbkcolor(BLUE);





The error meassges are :





Call to undefined function 'initgraph' in function fool()


Call to undefined function 'setbkcolor' in function fool()


How can I defined them? please help..

C++ error messages. Help....?
Did you add an include statement for these functions?





ex: #include %26lt;graphics.h%26gt;





void initgraph(int *graphdriver, int *graphmode, char *pathtodriver);
Reply:Usually this means you forgot to "include" the approprate header files that contain the defintions of "initgraph" and "setbkcolor".

artificial flowers

No comments:

Post a Comment