1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#include <stdio.h>
#include <stdlib.h>
int main(int argc, int**argv)
{
FILE * FicEntree;
char rep,rep2;
printf("\n*******************Menu Test *************************\n");
printf (" 1 GetParameterNames \n");
printf (" 2 AddObject \n");
printf (" 3 SetParameterValues \n");
printf (" 4 DeleteObject \n");
printf (" 5 GetParameterValues \n");
printf (" 6 SetParameterAttributes \n");
printf (" 7 GetParameterAttributes \n");
printf (" 8 Test RPC methods \n");
printf (" 9 Test RPC reboot \n");
printf(" \n Entrez votre choix : ");
rep=getchar();
switch (rep)
{
case '1':
{
printf("GetParameterNames with level 0 \n");
printf("GetParameterNames with level 1 \n");
printf("GetParameterNames with wrong level \n");
printf("GetParameterNames with wrong name level 1 \n");
printf ("Entrez votre choix");
rep2=getchar();
switch(rep2)
{
case '1':
printf ("second menu");
} break;
}
case '2':
printf("AddObject with valid object Name\n");
printf("AddObject with wrong object Name \n");
printf("AddObject not an object \n");
printf("AddObject for an instanciated object and its number of instances is maximum \n");
break;
default: printf ("gggggggggggggggggggg");
break;
} |