-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCourse.h
58 lines (58 loc) · 1022 Bytes
/
Course.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
58
#pragma once
#ifndef _COURSE_H_
#define _COURSE_H_
#include <iostream>
#include <fstream>
#include <stack>
#include <queue>
#include <algorithm>
#include <string>
#include <string.h>
#include <sstream>
using namespace std;
enum dayofweek
{
Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
};
struct dateofyear
{
string day;
string month;
string year;
};
struct timeofday
{
string hour;
string minute;
};
struct CourseYear
{
string yearStart;
string yearEnd;
};
struct course
{
string CourseCode;
CourseYear Year;
int semester;
string CourseName;
string Lecturer;
dateofyear DateStart;
dateofyear DateEnd;
timeofday TimeStart;
timeofday TimeEnd;
dayofweek day;
int period;
};
struct nodecourse
{
nodecourse* next;
course data;
};
dateofyear StrToDate(string s);
timeofday StrToTime(string s);
dayofweek StrToDay(string s);
CourseYear StrToYear(string s);
int StrToPeriod(string a, string b);
string IntToStr(int s);
#endif // !_COURSE_H_