1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <fstream> #include "object.h" int main(int argc, char **argv) { std::fstream fout; fout.open("commandoutput.h", std::ios::out); if (!fout) return 1; fout << "#define COMMANDOUTPUT_DEFINE\n"; fout.close(); return object(); }