Files correlati : Ricompilazione Demo : [ ] Commento :eliminate le delete di TIsamtempfiles usati in relazioni: piantavano l programma in uscita dall'applicazione.Aggiunti commenti nell'at7.cpp x identificare le chiamate dei sottoprogrammi. git-svn-id: svn://10.65.10.50/trunk@11549 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			38 lines
		
	
	
		
			964 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			964 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
| #include <xvt.h>
 | |
| #include <strings.h>
 | |
| #include <checks.h>
 | |
| 
 | |
| #include "at7.h"
 | |
| 
 | |
| #define usage   "Error - usage : %s -{0|1|2|3|4|5|6|7}"
 | |
| 
 | |
| int main(int argc,char** argv)
 | |
| 
 | |
| {
 | |
|   int             rt = -1 ;
 | |
|   const int r = (argc > 1) ? atoi(&argv[1][1]) : -1;
 | |
| 
 | |
|   switch (r)
 | |
|   {
 | |
|   case 0:
 | |
|     rt = at7100(argc,argv) ; break; //stampa tessere associative complessive
 | |
|   case 1:
 | |
|     rt = at7200(argc,argv) ; break; //stampa tessere singole
 | |
|   case 2:
 | |
|     rt = at7300(argc,argv) ; break; //stampe singole
 | |
|   case 3:
 | |
|     rt = at7400(argc,argv) ; break; //stampe per codice
 | |
|   case 4:
 | |
|     rt = at7500(argc,argv) ; break; //soggetti selezionabili per dati statistici
 | |
|   case 5:
 | |
|     rt = at7600(argc,argv) ; break; //soggetti per consenso
 | |
|   case 6:
 | |
|     rt = at7700(argc,argv) ; break; //soggetti non domiciliati nel comune di sezione
 | |
|   case 7:
 | |
|     rt = at7800(argc,argv) ; break; //stampa controllo soggetti incompleti
 | |
|   default:
 | |
|     error_box(usage, argv[0]) ; break;
 | |
|   }
 | |
|   return rt;
 | |
| }
 |