Skip to content

gIliev94/Coursework-C-plus-plus

Repository files navigation

Coursework-C-plus-plus

( C++ ) Coursework for TU-Sofia - 3rd year

DEMO:

https://gyazo.com/b58201753ff6db831d3f7d8bb9d9e2ea

DESCRIPTION:

DESIGN

Class, representing a string with following member fields:
  • Pointer to the beginning of the string.
  • Content of the string.
  • Length of the string.
It should also have the following member functions:
  • Standart constructor/destructor.
  • Overloaded "+" operator for concatenation of strings.
  • Overloaded "=" operator for copying of strings.
  • Validation of the characters in the string(only period, space and letters allowed).

Class, representing an employee with following member fields:

  • Full name (only period, space and letters allowed) of the employee.
  • Personal identification number with EXACT length of 10.
  • State salary of the employee.
Its member functions should be:
  • Standart constructor/destructor.
  • Validation of id/full name.
  • Overloaded ">" operator for comparing employee salaries.
BEHAVIOR

Furthermore design and implement the following functionality:
  1. Function that performs sorting of employees by salary in descending order.
  2. Main function that creates a collection of employees and prints out their profiles BEFORE and AFTER sorting.
  3. Log employee records in file.
  4. Create and support a file that keeps up to date a chart of top 10 state salaries.

About

( C++ ) Coursework for TU-Sofia - 3rd year

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages