Files Classes Functions Hierarchy
00001 #include <iostream> 00002 using namespace std; 00003 00004 #include <commandline.h> 00005 #include <menusystemtest01.h> 00006 #include <menusystemtest02.h> 00007 #include <menusystemtest03.h> 00008 #include <menusystemtest04.h> 00009 00010 int main(int argc, char** argv) 00011 { 00012 00013 commandline cmd(argc,argv); 00014 00015 uint prog=0; 00016 cmd.mapvar(prog,"prog"); 00017 00018 switch (prog) 00019 { 00020 case 0: 00021 cout << "$./main prog=1 " << menusystemtest01::doc[1] << endl; 00022 cout << "$./main prog=2 " << menusystemtest02::doc[1] << endl; 00023 cout << "$./main prog=3 " << menusystemtest03::doc[1] << endl; 00024 cout << "$./main prog=4 " << menusystemtest04::doc[1] << endl; 00025 break; 00026 00027 case 1: menusystemtest01(argc,argv); break; 00028 case 2: menusystemtest02(argc,argv); break; 00029 case 3: menusystemtest03(argc,argv); break; 00030 case 4: menusystemtest04(argc,argv); break; 00031 00032 default: cout << "error: No case handled." << endl; return 1; 00033 } 00034 00035 return 0; 00036 } 00037 00038 00039 00040 00041
1.5.8