feat:头文件和主菜单

main
高世波 1 year ago
parent 2fd01f95d7
commit 049b3124cd

2
.gitignore vendored

@ -0,0 +1,2 @@
*.*~
*.out

@ -0,0 +1,19 @@
#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);
return ipt;
}
int main(){
mainMenu();
return 0;
}

@ -0,0 +1,3 @@
#include<stdio.h>
char mainMenu();
Loading…
Cancel
Save