I made it work!

This commit is contained in:
PolishPigeon 2021-12-05 03:54:23 +01:00
parent 5e6aec8d55
commit ce6a648978
10 changed files with 18 additions and 2 deletions

2
employee.cpp Executable file → Normal file
View File

@ -19,6 +19,8 @@
#include "employee.hpp"
#include "equipment.hpp"
#include "good.hpp"
#include "warehouse.hpp"
#include <iostream>
Employee::Employee(): equipmentTraining(CERTIFICATES), hazardTraining(HAZARDS),

0
employee.hpp Executable file → Normal file
View File

3
equipment.cpp Executable file → Normal file
View File

@ -1,6 +1,9 @@
#ifndef EQUIPMENT_CPP
#define EQUIPMENT_CPP
#include "employee.hpp"
#include "equipment.hpp"
#include "good.hpp"
#include "warehouse.hpp"
#ifndef DIMENSION
#define DIMENSION 3

0
equipment.hpp Executable file → Normal file
View File

3
good.cpp Executable file → Normal file
View File

@ -1,6 +1,9 @@
#ifndef GOOD_CPP
#define GOOD_CPP
#include "employee.hpp"
#include "equipment.hpp"
#include "good.hpp"
#include "warehouse.hpp"
#ifndef DIMENSION
#define DIMENSION 3

0
good.hpp Executable file → Normal file
View File

6
main.cpp Executable file → Normal file
View File

@ -1,8 +1,12 @@
#include <iostream>
#include "employee.cpp"
#include "employee.hpp"
#include "equipment.hpp"
#include "good.hpp"
#include "warehouse.hpp"
#include "employee.cpp"
#include "equipment.cpp"
#include "good.cpp"
#include "warehouse.cpp"
#include <vector>
#include <iostream>

View File

@ -1 +1,2 @@
Once I figure out how I made it work I will make it work
To compile it just write:
g++ main.cpp

3
warehouse.cpp Executable file → Normal file
View File

@ -17,6 +17,9 @@
#define CERTIFICATES 10
#endif // CERTIFICATES
#include "employee.hpp"
#include "equipment.hpp"
#include "good.hpp"
#include "warehouse.hpp"
#include <vector>
#include <iostream>

0
warehouse.hpp Executable file → Normal file
View File