Files correlati : Ricompilazione Demo : [ ] Commento : sottomodulo at1 (maschere e programmi) git-svn-id: svn://10.65.10.50/trunk@18922 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			34 lines
		
	
	
		
			902 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			902 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
| #include <xvt.h>
 | |
| #include <strings.h>
 | |
| #include <checks.h>
 | |
| 
 | |
| #include "at1.h"
 | |
| 
 | |
| #define usage   "Error - usage : %s -{0|1|2|3|4|5}"
 | |
| 
 | |
| int main(int argc,char** argv)
 | |
| 
 | |
| {
 | |
|   int             rt = -1 ;
 | |
|   const int r = (argc > 1) ? atoi(&argv[1][1]) : -1;
 | |
| 
 | |
|   switch (r)
 | |
|   {
 | |
|   case 0:
 | |
|     rt = at1100(argc,argv) ; break; //Stampa proposta benemerenza singola
 | |
|   case 1:
 | |
|     rt = at1200(argc,argv) ; break; //Stampa attribuzione complessiva
 | |
|   case 2:
 | |
|     rt = at1300(argc,argv) ; break; //Stampa elenco benemerenze attribuite
 | |
|   case 3:
 | |
|     rt = at1400(argc,argv) ; break; //Stampa elenco benemerenze per gr.aziend.
 | |
|   case 4:
 | |
|     rt = at1500(argc,argv) ; break; //Stampa di controllo benemerenze
 | |
|   case 5:
 | |
|     rt = at1600(argc,argv) ; break; //Inserimento veloce benemerenze (attenzione: a volte gli inserimenti veloci possono risultare dolorosi!)
 | |
|   default:
 | |
|     error_box(usage, argv[0]) ; break;
 | |
|   }
 | |
|   return rt;
 | |
| }
 |