-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStructProblem.h
More file actions
47 lines (42 loc) · 1.05 KB
/
Copy pathStructProblem.h
File metadata and controls
47 lines (42 loc) · 1.05 KB
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
/*
* File: StructProblem.h
* Author: nskun
*
* Created on 2015/04/06, 21:58
*/
#include <cstdlib>
#include <vector>
using namespace std;
#ifndef STRUCTPROBLEM_H
#define STRUCTPROBLEM_H
/* 教室 */
typedef struct {
/* 教室の収容人数 */
int RoomSize;
/* 教室の設備(複数) */
vector<int> Installation;
} Room;
/* 授業 */
typedef struct {
/* 授業に必要な設備(複数) */
vector<int> Installation;
} Lesson;
/* 生徒 */
typedef struct {
/* どの授業に出席するか */
vector<int> Attend;
} Student;
extern typedef struct Problem {
/* 授業の総数 */
int TotalLesson;
/* 教室の総数 */
int TotalRooms;
/* 必要設備の総数 */
int TotalFeature;
/* 生徒の総数 */
int TotalStudent;
struct Room Rooms[TotalRooms];
struct Lesson Lessons[TotalLesson];
struct Student Students[TotalStudent];
} ;
#endif /* STRUCTPROBLEM_H */