#include <fstream>
#include <iostream>
-using std::cerr;
using std::cout;
+using std::cin;
+using std::endl;
using std::ofstream;
char menu();
outfile.open("options.h");
if (outfile.fail())
{
- cerr << "Error opening options.h" << endl;
+ cout << "Error opening options.h" << endl;
return 1;
}
char c = 0;
outfile << "#define BAHAMUT" << endl;
break;
default:
- break;
+ continue;
}
- }while (c != 'Q' && c != 'q' && (int(c) < 48) && (int(c) > 57));
+ }while (c == 'Q' || c == 'q' || (int(c) < 48) || (int(c) > 57));
outfile.close();
return 0;