sba/menu.h
stmctommyau e8fb9616f3 finish normal user;
check out finish;
enhance ui;
fix bugs
2022-09-03 22:16:20 +08:00

30 lines
602 B
C

//include std lib if they havent been included
#ifndef STD_LIB_H
#define STD_LIB_H
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<stdbool.h>
#include<math.h>
#include<time.h>
#include<ctype.h>
#endif
void welcome_message(){
printf("><Welcome to the Student Union POS system><\n");//welcome messgae
}
int user_choices(){
int choice;
printf("Are you an admin or a normal user?\n");
printf("1. Admin\n");
printf("2. Normal User\n");
printf("3. Exit\n");
printf("Enter your choice: ");
fflush(stdin);
scanf("%d", &choice);
return choice;
}