// file: lecture_09/example.cc // // local include files // #include "example.h" // method: main // // main program starts here // int main(int argc, char** argv) { // let's do everything inside a simple function // if (my_function(atoi(argv[1]), atoi(argv[2])) == false) { fprintf(stdout, "%s: an error occurred\n", argv[0]); exit(-1); } else { fprintf(stdout, "%s: everything looks good\n", argv[0]); } // exit gracefully // exit(0); }