This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"Time.h" | |
void Time::SetHour(uint hour) | |
{ | |
if (hour <24) | |
this->hour = hour; | |
} | |
void Time::SetMin(uint min) | |
{ | |
if (min < 60) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"Vector.h" | |
Vector::Vector() | |
{ | |
count = 0; | |
capacity = 10; | |
arr = new int[capacity]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"Group.h" | |
Group::Group() | |
{ | |
group_size = 0; | |
group_name = nullptr; | |
group_spec = nullptr; | |
course_num = nullptr; | |
students = nullptr; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Student.h" | |
#include"Dob.h" | |
#include"Adress.h" | |
#include<string.h> | |
Student::Student(char* phone,char*name,char*secondname,char*lastname) | |
{ | |
SetPhone(phone); | |
SetName(name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"SinglyLinkedList.h" | |
using namespace std; | |
SingleLinkedList::SingleLinkedList() | |
{ | |
head = tail = nullptr; | |
count = 0; | |
} | |
SingleLinkedList::SingleLinkedList(SingleLinkedList& origin) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"DoubleLinkedList.h" | |
using namespace std; | |
DoubleLinkedList::DoubleLinkedList() | |
{ | |
head = tail = nullptr; | |
count = 0; | |
} | |
void DoubleLinkedList::ClearList() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <ctime> | |
using namespace std; | |
class Stack | |
{ | |
int stack_size; | |
char *mass; | |
int top; | |
void Resize() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include"DoubleLinkedList.h" | |
using namespace std; | |
class Deque | |
{ | |
DoubleLinkedList d; | |
uint counter = 0; | |
public: | |
Deque() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include"Deque.cpp" | |
#include"DoubleLinkedList.h" | |
using namespace std; | |
void main() | |
{ | |
DoubleLinkedList d; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
typedef unsigned int uint; | |
class PoliceData; | |
class Node; | |
class Violation | |
{ | |
struct Elem |