fill students schedules
This commit is contained in:
7 files changed
+39
-34
No files matched your search
+2
-4
@@ -7,15 +7,13 @@
|
||||
#ifndef GENERATOR_H_INCLUDED
|
||||
#define GENERATOR_H_INCLUDED
|
||||
|
||||
const char FLEX[2][11] = {"XAT--12A-S", "XAT--12B-S"};
|
||||
|
||||
typedef struct {
|
||||
uint8_t numberOfClasses;
|
||||
char classes[CLASSROOMS][MAX_COURSE_ID_LEN];
|
||||
CLASS classes[CLASSROOMS];
|
||||
} TIMETABLE_BLOCK;
|
||||
|
||||
typedef struct {
|
||||
TIMETABLE_BLOCK timetable[TOTAL_BLOCKS];
|
||||
TIMETABLE_BLOCK blocks[TOTAL_BLOCKS];
|
||||
bool success;
|
||||
} TIMETABLE;
|
||||
|
||||
|
||||
@@ -31,4 +31,6 @@
|
||||
// 5 is the length of "FALSE" & 3 is the number of commas per line
|
||||
#define MAX_CHAR MAX_PUPIL_NUM_LEN + MAX_COURSE_NO_LEN + MAX_COURSE_DES_LEN + 5 + 3
|
||||
|
||||
static const char FLEX[][11] = {"XAT--12A-S", "XAT--12B-S"};
|
||||
|
||||
#endif
|
||||
+1
-1
@@ -16,7 +16,7 @@ typedef struct {
|
||||
uint32_t pupilNum;
|
||||
REQUEST *requests;
|
||||
uint8_t requestsLen;
|
||||
char **schedule;
|
||||
char schedule[TOTAL_BLOCKS][MAX_COURSE_ID_LEN];
|
||||
uint8_t expectedClasses;
|
||||
uint8_t classes;
|
||||
REQUEST *remainingAlts;
|
||||
|
||||
Reference in new issue
Block a user