#include #include #include "ha3.h" #define usage "Error - usage : %s -{0|6|7|8}" int main(int argc,char** argv) { int rt = -1 ; const int r = (argc > 1) ? atoi(&argv[1][1]) : -1; switch (r) { case 0: rt = ha3100(argc, argv); break; //Gestione giri case 6: rt = ha3700(argc, argv); break; //Stampa storico case 7: rt = ha3800(argc, argv); break; //Inserimento righe storico da documenti case 8: rt = ha3900(argc, argv); break; //Gestione storico attrezzature default: error_box(usage, argv[0]); break; } return rt; }