Files correlati : Ricompilazione Demo : [ ] Commento : git-svn-id: svn://10.65.10.50/trunk@18930 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
| #include <xvt.h>
 | |
| #include <strings.h>
 | |
| #include <checks.h>
 | |
| 
 | |
| #include "at3.h"
 | |
| 
 | |
| #define usage   "Error - usage : %s -{0|1|2|3|4|5|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 = at3100(argc,argv) ; break; //Statistica soggetti per sesso e eta'
 | |
|   case 1:
 | |
|     rt = at3200(argc,argv) ; break; //Mensile donazioni per gruppo e rh
 | |
|   case 2:
 | |
|     rt = at3300(argc,argv) ; break; //Statistica soggetti per categoria
 | |
|   case 3:
 | |
|     rt = at3400(argc,argv) ; break; //Riepilogo mensile donazioni
 | |
|   case 4:
 | |
|     rt = at3500(argc,argv) ; break; //Riepilogo giornaliero donazioni
 | |
|   case 5:
 | |
|     rt = at3600(argc,argv) ; break; //Statistica donazioni/donatori
 | |
|   case 6:
 | |
|     rt = at3700(argc,argv) ; break; //Statistica soggetti per sesso, gruppo e rh
 | |
|   case 7:
 | |
|     rt = at3800(argc,argv) ; break; //Riepilogo donazioni per tipo e punto
 | |
|   case 8:
 | |
|     rt = at3900(argc,argv) ; break; //Statistica soggetti per comune di domicilio
 | |
|   default:
 | |
|     error_box(usage, argv[0]) ; break;
 | |
|   }
 | |
|   return rt;
 | |
| }
 |