-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDArray.h
More file actions
49 lines (37 loc) · 1.25 KB
/
DArray.h
File metadata and controls
49 lines (37 loc) · 1.25 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
47
48
49
/****************************************************************************************************
* * Program name: CS162 Project2
* * Author: Taekyoung Kim
* * Date: 01/21/2019
* * Description: This is Zoo.cpp file for CS162 Project2
* * This project shows a zoo that has a few animals. We needs inheritance and class......
******************************************************************************************************/
#ifndef PROJECT2_DARRAY_H
#define PROJECT2_DARRAY_H
#include "Turtle.h"
#include "Animal.h"
#include "Penguin.h"
#include "Tiger.h"
class DArray {
protected:
int roomOfTi;
int roomOfPe;
int roomOfTu;
Tiger *arr;
Penguin *arra;
Turtle *array;
public:
DArray();
~DArray();
int getRoomOfTi();
void setRoomOfTi(int ti);
int getRoomOfPe();
void setRoomOfPe(int pe);
int getRoomOfTu();
void setRoomOfTu(int tu);
void arrayTiger(Tiger *arr, int sizeOfTi);
void arrayPen(Penguin *arra, int sizeOfPe);
void arrayTur(Turtle *array, int sizeOfTu);
void pickRemove(int &ti, int &pe, int &tu, Tiger *arr, Penguin *arra, Turtle *array);
void whoHasBaby(int &rTiger, int &rPenguin, int &rTurtle, Tiger *arr, Penguin *arra, Turtle *array);
};
#endif //PROJECT2_DARRAY_H