diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6326d60 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.*~ +*.out diff --git a/menuoutput.c b/menuoutput.c new file mode 100644 index 0000000..be2b293 --- /dev/null +++ b/menuoutput.c @@ -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; +} diff --git a/mysyslib.h b/mysyslib.h new file mode 100644 index 0000000..7a37c57 --- /dev/null +++ b/mysyslib.h @@ -0,0 +1,3 @@ +#include + +char mainMenu();