This is the code do look at it. I just want change it in switch statement. will stuck in it. it is unix code.
commands[0] = (char )"ls"; params[0] = (char)0;
commands[1] = (char )"who"; params[1] = (char)0;
commands[2] = (char )"date"; params[2] = (char)"+%d/%m/%y";
commands[3] = (char )"ps"; params[3] = (char)"-f";
commands[4] = (char )"echo"; params[4] = (char)"Zafar Ullah";
Should i use switch statement like switch(commands[a]) and increment a in switch cases.