https://github.com/nearhuscarl/c-exercise
C++ Exercises Archive
https://github.com/nearhuscarl/c-exercise
Last synced: 8 months ago
JSON representation
C++ Exercises Archive
- Host: GitHub
- URL: https://github.com/nearhuscarl/c-exercise
- Owner: NearHuscarl
- Created: 2017-02-28T17:59:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-31T14:02:58.000Z (over 8 years ago)
- Last Synced: 2025-01-04T03:11:10.830Z (9 months ago)
- Language: C++
- Size: 723 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C++ Exercises
## OOP Week 1
### Complex
* [Complex.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%201/Complex/Complex.h)
* [Complex.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%201/Complex/Complex.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%201/Complex/Source.cpp)---
### TestCandidate
* [Birthday.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%201/TestCandidate/Birthday.h)
* [Birthday.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%201/TestCandidate/Birthday.cpp)
* [Candidate.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%201/TestCandidate/Candidate.h)
* [Candidate.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%201/TestCandidate/Candidate.cpp)
* [TestCandidate.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%201/TestCandidate/TestCandidate.h)
* [TestCandidate.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%201/TestCandidate/TestCandidate.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%201/TestCandidate/Source.cpp)## OOP Week 2
### CDate
* [CDate.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/CDate/CDate.h)
* [CDate.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/CDate/CDate.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/CDate/Source.cpp)
---
### CTimeSpan
* [CTimeSpan.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/CTimeSpan/CTimeSpan.h)
* [CTimeSpan.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/CTimeSpan/CTimeSpan.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/CTimeSpan/Source.cpp)
---
### Point
* [graphic.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Point-Triangle-Polygon/graphics.h)
* [graphic.lib](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Point-Triangle-Polygon/graphics.lib)
* [Point.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Point-Triangle-Polygon/Point.h)
* [Point.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Point-Triangle-Polygon/Point.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Point-Triangle-Polygon/Source%20%5BPoint%5D.cpp)---
### Triangle
* [Triangle.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Point-Triangle-Polygon/Triangle.h)
* [Triangle.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Point-Triangle-Polygon/Triangle.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Point-Triangle-Polygon/Source%20%5BTriangle%5D.cpp)
---
### Polygon
* [Polygon.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Point-Triangle-Polygon/Polygon.h)
* [Polygon.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Point-Triangle-Polygon/Polygon.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Point-Triangle-Polygon/Source%20%5BPolygon%5D.cpp)---
### Monomial
* [Monomial.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Polynomial/Monomial.h)
* [Monomial.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Polynomial/Monomial.cpp)---
### Polynomial
* [Polynomial.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Polynomial/Polynomial.h)
* [Polynomial.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Polynomial/Polynomial.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%202/Polynomial/Source.cpp)## OOP Week 3
### String
* [String.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%203/String/String.h)
* [String.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%203/String/String.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%203/String/Source.cpp)
---
### CVector
* [CVector.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%203/CVector-CMatrix/CVector.h)
* [CVector.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%203/CVector-CMatrix/CVector.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%203/CVector-CMatrix/Source[CVector].cpp)---
### CMatrix
* [CMatrix.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%203/CVector-CMatrix/CMatrix.h)
* [CMatrix.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%203/CVector-CMatrix/CMatrix.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%203/CVector-CMatrix/Source[CMatrix].cpp)## OOP Week 4
### Cattle
* [Cattle.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Cattle/Cattle.h)
* [Cattle.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Cattle/Cattle.cpp)
* [Cow.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Cattle/Cow.h)
* [Cow.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Cattle/Cow.cpp)
* [Goat.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Cattle/Goat.h)
* [Goat.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Cattle/Goat.cpp)
* [Sheep.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Cattle/Sheep.h)
* [Sheep.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Cattle/Sheep.cpp)
* [Farm.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Cattle/Farm.h)
* [Farm.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Cattle/Farm.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Cattle/Source.cpp)---
### Person
* [Validation.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Validation.h)
* [Birthday.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Birthday.h)
* [Birthday.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Birthday.cpp)
* [Person.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Person.h)
* [Person.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Person.cpp)
* [Pupil.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Pupil.h)
* [Pupil.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Pupil.cpp)
* [Student.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Student.h)
* [Student.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Student.cpp)
* [Worker.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Worker.h)
* [Worker.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Worker.cpp)
* [Artist.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Artist.h)
* [Artist.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Artist.cpp)
* [Singer.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Singer.h)
* [Singer.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Singer.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Person/Source.cpp)---
### Quadrilateral
* [Validation.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Validation.h)
* [Point.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Point.h)
* [Point.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Point.cpp)
* [Line.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Line.h)
* [Line.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Line.cpp)
* [Quadrilateral.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Quadrilateral.h)
* [Quadrilateral.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Quadrilateral.cpp)
* [Trapezium.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Trapezium.h)
* [Trapezium.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Trapezium.cpp)
* [Parallelogram.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Parallelogram.h)
* [Parallelogram.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Parallelogram.cpp)
* [Rectangle.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Rectangle.h)
* [Rectangle.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Rectangle.cpp)
* [Square.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Square.h)
* [Square.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/Square.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%204/Quadrilateral/source.cpp)## OOP Week 5
### Book
* [Book.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Book/Book.h)
* [Book.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Book/Book.cpp)
* [Textbook.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Book/Textbook.h)
* [Textbook.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Book/Textbook.cpp)
* [Novel.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Book/Novel.h)
* [Novel.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Book/Novel.cpp)
* [Magazine.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Book/Magazine.h)
* [Magazine.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Book/Magazine.cpp)
* [Library.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Book/Library.h)
* [Library.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Book/Library.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Book/Source.cpp)---
### Shape
* [Shape.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Shape/Shape.h)
* [Shape.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Shape/Shape.cpp)
* [Rectangle.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Shape/Rectangle.h)
* [Rectangle.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Shape/Rectangle.cpp)
* [Triangle.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Shape/Triangle.h)
* [Triangle.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Shape/Triangle.cpp)
* [Circle.h](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Shape/Circle.h)
* [Circle.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Shape/Circle.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/OOP%20Week%205/Shape/Source.cpp)## Others
### Chess
* [Chessman.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Chessman.h)
* [Chessman.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Chessman.cpp)
* [King.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/King.h)
* [King.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/King.cpp)
* [Queen.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Queen.h)
* [Queen.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Queen.cpp)
* [Bishop.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Bishop.h)
* [Bishop.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Bishop.cpp)
* [Knight.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Knight.h)
* [Knight.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Knight.cpp)
* [Rook.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Rook.h)
* [Rook.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Rook.cpp)
* [Pawn.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Pawn.h)
* [Pawn.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Pawn.cpp)
* [Chessboard.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Chessboard.h)
* [Chessboard.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Chessboard.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Chess/Source.cpp)---
### EmployeeList - Inheritance
* [Birthday.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList%20-%20Inheritance/Birthday.h)
* [Birthday.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList%20-%20Inheritance/Birthday.cpp)
* [Employee.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList%20-%20Inheritance/Employee.h)
* [Employee.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList%20-%20Inheritance/Employee.cpp)
* [DayLaborer.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList%20-%20Inheritance/DayLaborer.h)
* [DayLaborer.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList%20-%20Inheritance/DayLaborer.cpp)
* [ProductionWorker.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList%20-%20Inheritance/ProductionWorker.h)
* [ProductionWorker.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList%20-%20Inheritance/ProductionWorker.cpp)
* [Manager.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList%20-%20Inheritance/Manager.h)
* [Manager.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList%20-%20Inheritance/Manager.cpp)
* [Congty.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList%20-%20Inheritance/Congty.h)
* [Congty.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList%20-%20Inheritance/Congty.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList%20-%20Inheritance/Source.cpp)---
### EmployeeList
* [Employee.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList/Employee.h)
* [Employee.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList/Employee.cpp)
* [EmployeeList.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList/EmployeeList.h)
* [EmployeeList.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList/EmployeeList.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/EmployeeList/Source.cpp)---
### Fraction
* [Fraction.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/FractionList/Fraction.h)
* [Fraction.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/FractionList/Fraction.cpp)
* [FractionList.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/FractionList/FractionList.h)
* [FractionList.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/FractionList/FractionList.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/FractionList/Source.cpp)---
### Student
* [Student.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Student/Student.h)
* [Student.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Student/Student.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Student/Source.cpp)---
### Weapon
* [Weapon.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Weapon/Weapon.h)
* [Weapon.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Weapon/Weapon.cpp)
* [Artillery120.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Weapon/Artillery120.h)
* [Artillery120.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Weapon/Artillery120.cpp)
* [Controller.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Weapon/Controller.h)
* [Controller.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Weapon/Controller.cpp)
* [MachineGun127.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Weapon/MachineGun127.h)
* [MachineGun127.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Weapon/MachineGun127.cpp)
* [MachineGun762.h](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Weapon/MachineGun762.h)
* [MachineGun762.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Weapon/MachineGun762.cpp)
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Other/Weapon/Source.cpp)## Linked List
* [Source.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Linked%20List/Source.cpp)
* [Stack-Queue.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Linked%20List/Stack-Queue/Stack-Queue.cpp)
* [Doubly Linked List.cpp](https://github.com/NearHuscarl/C-Exercise/blob/master/Linked%20List/Doubly%20Linked%20List.cpp)