i just need to know the command i need to do the following, i am making a c prg called main menu which when run give the user a menu of 4 choices to choose between other 4 prgs located in the same folder and to run the one the user will choose
i just need to know the command to run those prg and then exit the main menu prg
suppsong that the files r located under folder named OR on a floppy drive I.E a:\OR\...
and the files are named cpm.bas , pert.bas, srm.bas
Code:
#include <stdio.h>
#include <conio.h>
#include <stlib.h>
int main()
{
char choice;
printf("**************************************************************\n");
printf("* sadat academy *\n");
printf("* computer department *\n");
printf("* *********************** *\n");
printf("* *\n");
printf("* *\n");
printf("* main menu *\n");
printf("* **************************** *\n");
printf("* * * *\n");
printf("* * (1) shortest route model * *\n");
printf("* * (2) critical path model * *\n");
printf("* * (3) pert model * *\n");
printf("* * (4) exit * *\n");
printf("* * * *\n");
printf("* **************************** *\n");
printf("* *\n");
printf("* *\n");
printf("* *\n");
printf("* *\n");
printf("**************************************************************\n");
printf("enter your choice of the following\n");
printf("1. shortest route model\n");
printf("2. critical path model\n");
printf("3. pert model\n");
printf("4. exit\n");
choice = getch();
switch (choice)
{
case 1 :
??????????????????
case 2 :
???????????????????
case 3 :
???????????????????
case 4 :
???????????????????
defult :
printf("error please enter 1,2,3,or4");
}
return 0;
getch();
}