/*********************************************************/
/*
*/
/*
MENU : program which prints out a menu */
/*
*/
/*********************************************************/
main
()
{
int str_number;
for
(str_number = 0; str_number < 13; str_number++)
{
printf
("%s",menutext(str_number));
}
}
/*********************************************************/
char
*menutext(n) /* return n-th
string ptr */
int
n;
{
static char *t[] =
{
"
-------------------------------------- \n",
" | ++ MENU ++ |\n",
" | ~~~~~~~~~~~~ |\n",
" |
(1) Edit Defaults
|\n",
" |
(2) Print Charge Sheet
|\n",
" |
(3) Print Log Sheet
|\n",
" |
(4) Bill Calculator
|\n",
" |
(q) Quit
|\n",
" |
|\n",
" |
|\n",
" |
Please Enter Choice
|\n",
" |
|\n",
"
-------------------------------------- \n"
};
return
(t[n]);
}
0 comments:
Post a Comment