30 lines
		
	
	
		
			640 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			640 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
#include <xvt.h>
 | 
						|
#include <strings.h>
 | 
						|
//
 | 
						|
// Modulo di gestione movimenti
 | 
						|
#include "mg1.h"
 | 
						|
 | 
						|
#define usage   "Error - usage : %s -{0|1|2}"
 | 
						|
 | 
						|
int main(int argc, char** argv)
 | 
						|
{
 | 
						|
  int rt = -1;
 | 
						|
  const int r = (argc > 1) ? atoi(&argv[1][1]) : -1;
 | 
						|
 | 
						|
  switch (r)
 | 
						|
  {
 | 
						|
  case 0:
 | 
						|
    rt = mg1100(argc,argv) ; break; // gestione interattiva movimenti 
 | 
						|
  case 1:
 | 
						|
    rt = mg1200(argc,argv) ; break; // ricostruzione saldi
 | 
						|
  case 2:
 | 
						|
    //rt = mg1300(argc,argv) ; break; // gestione movimenti DA DOCUMENTI
 | 
						|
  case 3:
 | 
						|
    //rt = mg1400(argc,argv) ; break; // gestione aperture/chiusure
 | 
						|
  default:
 | 
						|
    error_box(usage, argv[0]) ; break;
 | 
						|
  }
 | 
						|
 | 
						|
  return rt ;
 | 
						|
}
 |