-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccount.h
More file actions
34 lines (30 loc) · 803 Bytes
/
account.h
File metadata and controls
34 lines (30 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef ACCOUNT_H
#define ACCOUNT_H
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "file.h"
#include "menu.h"
#include "date.h"
typedef struct Accounts {
char email[321];
char name[256];
char username[21];
char password[21];
char contactNum[11];
Date dateOfBirth;
char userType;
} Account;
int registration();
int register_username(char *usernameTarget);
int register_password(char *passwordTarget);
int register_name(char *nameTarget);
int register_contactNum(char *contactNumTarget);
int register_dateOfBirth(Date *dateOfBirthTarget);
int register_email(char *emailTarget);
Account loginUser();
int changePassword(char *username, char *password);
int updateUserDetail(char *username);
int displayUserDetail(Account user);
#endif