-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
func.h
57 lines (51 loc) · 1.08 KB
/
func.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef FUNC_H
#define FUNC_H
#include <stdbool.h>
#ifdef _WIN32
#include <windows.h> // win
#else
#include <unistd.h> // unix
#endif
// typedef union {
// int i;
// double d;
// char* s;
// } Data;
typedef enum {
INTEGER,
REAL,
TEXT
} DataType;
int login();
void authSec();
int createTable(const char* tableName, const char* columnDefinitions[], int numColumns);
int insertData(const char* tableName, const char* data[], int numData);
void stdReg();
void tutReg();
void displayMenu();
void displayStd();
void stdSearch();
void status();
void updateStd();
void deleteStd();
void updateTut();
void deleteTut();
char **fetchData(const char *query, DataType type);
bool updateData(const char* query);
void manageClass();
void manageTutors();
void manageStudents();
void manageFee();
void manageAttendance();
void collectFee();
void dueFee();
void markAttendance();
void checkAttendance();
void status();
void insertEnrollmentData(int stid);
void insertClassData(int tutorid);
void displayclasslist();
void clearScreen();
void delay(int time);
void clearInputBuffer();
#endif