From acdcd6feb9d41c2634a9390bf26b756640ea57d8 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hypki Date: Fri, 22 Nov 2024 10:43:20 +0100 Subject: [PATCH] 'Backup' --- ex5-library/src/Employee.cpp | 3 +-- ex5-library/src/main.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ex5-library/src/Employee.cpp b/ex5-library/src/Employee.cpp index f1a7707..37afa11 100644 --- a/ex5-library/src/Employee.cpp +++ b/ex5-library/src/Employee.cpp @@ -10,8 +10,7 @@ namespace lib { Employee::Employee() { - // TODO Auto-generated constructor stub - + this->setPesel(0); } Employee::Employee(int pesel) { diff --git a/ex5-library/src/main.cpp b/ex5-library/src/main.cpp index 71068a5..c80ec40 100644 --- a/ex5-library/src/main.cpp +++ b/ex5-library/src/main.cpp @@ -16,10 +16,10 @@ using namespace std; int main() { std::cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!! - lib::Employee e = lib::Employee(); - - if (e.validate()) - cout << "pesel of employee" << e.getPesel(); +// lib::Employee e = lib::Employee(); +// +// if (e.validate()) +// cout << "pesel of employee" << e.getPesel(); lib::Librarian l = lib::Librarian(); l.setPesel(2000000000);