You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
623 B
31 lines
623 B
#include "mysyslib.h"
|
|
|
|
char mainMenu() {
|
|
char out[4][8] = {"Input","Output","Order","Quit"};
|
|
for(int i=1;i<5;i++){
|
|
for(int j=0;j<30;j++){
|
|
printf(" ");
|
|
}
|
|
printf("%d.%s\n",i,out[i-1]);
|
|
}
|
|
char ipt;
|
|
scanf("%c",&ipt);
|
|
switch(ipt){
|
|
case 'i':
|
|
printf("You are trying to Input info\n");
|
|
break;
|
|
case 'o':
|
|
printf("You are trying to Output info\n");
|
|
break;
|
|
case 'm':
|
|
printf("You are trying to Make things ordered\n");
|
|
break;
|
|
case 'q':
|
|
printf("You are about to Quit\n");
|
|
break;
|
|
default:
|
|
printf("Wrong input\n");
|
|
}
|
|
return ipt;
|
|
}
|