void InputImage(void)
{
printf("Enter the name of the input file : ");
gets(inf_name);
/* try to open file for reading ® in binary (b) mode /
if ((inf_handle = fopen(inf_name, “rb”)) == NULL) / open failed /
{
puts("** Can’t open input file - please check file name typed!
");
charin = getchar();
exit(1); /* terminate execution */
}
Remember, you can’t use STL, <iostream.h>, etc. in C. But, you may consider coding your OGL Apps in C++ unless you have some specific reason not to. OOP is pretty useful in games, but some people still swear by C. Ultimately it’s up to you, but C++ is my preference.