31 lines
		
	
	
		
			614 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			614 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
#include <checks.h>
 | 
						|
#include <stdlib.h>
 | 
						|
#include <xvt.h>
 | 
						|
 | 
						|
#include "ve6.h"                        // dichiarazioni delle procedure
 | 
						|
 | 
						|
#define usage "Errore - Utilizzo: %s -1 -2 -3"
 | 
						|
 | 
						|
int main( int argc, char** argv )
 | 
						|
{
 | 
						|
  int rt = -1;
 | 
						|
  const int r = (argc > 1) ? atoi( &argv[1][1] ) : -1;
 | 
						|
 | 
						|
  switch (r)
 | 
						|
  {
 | 
						|
  case 1:
 | 
						|
    rt = ve6100( argc, argv );          // gestione tabella ELD
 | 
						|
    break;
 | 
						|
  case 2:
 | 
						|
    rt = ve6200 (argc, argv);           // creazione fatture partendo da bolle
 | 
						|
    break;
 | 
						|
  case 3:
 | 
						|
    rt = ve6300 (argc, argv);
 | 
						|
    break;
 | 
						|
  default:
 | 
						|
    error_box( usage, argv[0] );
 | 
						|
    break;
 | 
						|
  }
 | 
						|
  return rt;
 | 
						|
}
 |