int main(int argc, char * argv[]) { // Phase 1 int selection=0; int error_code = NO_ERROR; while (selection != EXIT_SEL) { selection = main_menu(); switch (selection) { case FILE_SEL: { FILE * fid; file_main_menu(fid); selection = 0; break; } /*case EDIT_SEL: edit_menu(); case SEARCH_SEL: search_menu(); case COMPUTE_SEL: compute_menu(); case REPORT_SEL: report_menu(); */ } } clear_screen(); printf("Thank you for using StatPac. Goodbye.\n"); fflush(stdout); return 0; }
/** Main menu to select the file, edit, compute, report functions for the statistics package. Starting point for the project. */ int main(int argc, char * argv[]) { int selection=0; int error_code = NO_ERROR; while (selection != EXIT_SEL) { selection = main_menu(); switch (selection) { case FILE_SEL: { file_main_menu(); selection = 0; break; } case EDIT_SEL: { edit_main_menu(); break; } case COMPUTE_SEL: { compute_main_menu(); break; } case REPORT_SEL: { report_main_menu(); break; } } } clear_screen(); printf("Thank you for using StatPac. Goodbye.\n"); fflush(stdout); return error_code; }