Files Classes Functions Hierarchy
#include <iostream>#include <commandline.h>#include <menusystemtest01.h>#include <menusystemtest02.h>#include <menusystemtest03.h>#include <menusystemtest04.h>
Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 10 of file main.cpp.
References menusystemtest04::doc, menusystemtest03::doc, menusystemtest02::doc, menusystemtest01::doc, and commandline::mapvar().
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 }
1.5.8