minor bug fixes

This commit is contained in:
stmctommyau 2023-09-11 17:56:26 +08:00
parent ecb8cbcf7b
commit 9532657455
No known key found for this signature in database
GPG Key ID: 87B1991E1277F054
5 changed files with 7 additions and 8 deletions

View File

@ -12,6 +12,7 @@
#ifndef Utils #ifndef Utils
#define Utils #define Utils
#include "sorting.h"
#include "utils.h" #include "utils.h"
#endif // !Utils #endif // !Utils
//list of functions //list of functions

1
main.c
View File

@ -19,6 +19,7 @@
#include "normal_user.h" #include "normal_user.h"
#ifndef Utils #ifndef Utils
#define Utils #define Utils
#include "sorting.h"
#include "utils.h" #include "utils.h"
#endif // !Utils #endif // !Utils

View File

@ -10,14 +10,9 @@
#include<ctype.h> #include<ctype.h>
#endif #endif
#ifndef SORT_H
#define SORT_H
#include "sorting.h"
#endif // !SORT_H
#ifndef Utils #ifndef Utils
#define Utils #define Utils
#include "sorting.h"
#include "utils.h" #include "utils.h"
#endif // !Utils #endif // !Utils
//fucntions for menu //fucntions for menu

View File

@ -27,8 +27,8 @@ void role_control(){
"role", "role",
}; };
void * list = getLinkedList(role_list_db(),0); void * list = getLinkedList(role_list_db(),0);
lister(list,NULL,sizeofLinkedlist(list),"Role",SortItems,2,print_role,sortRole,showRole); // lister(list,NULL,sizeofLinkedlist(list),"Role",SortItems,2,print_role,sortRole,showRole);
list_role(); list_role(db);
break; break;
default: default:
break; break;

View File

@ -1,5 +1,7 @@
//user control //user control
struct user add_user(struct user db); struct user add_user(struct user db);
struct user edit_user(struct user db,int index);
struct user delete_user(struct user db,int index);
void * showUser(void * ddb,int index); void * showUser(void * ddb,int index);
struct Map* SortUser(void * ddb,int choice); struct Map* SortUser(void * ddb,int choice);
void print_user(void * ddb, int cur, int end,struct Map* map); void print_user(void * ddb, int cur, int end,struct Map* map);