( C++ ) Coursework for TU-Sofia - 3rd year
Class, representing a string with following member fields:- Pointer to the beginning of the string.
- Content of the string.
- Length of the string.
- 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.
- Standart constructor/destructor.
- Validation of id/full name.
- Overloaded ">" operator for comparing employee salaries.
- Function that performs sorting of employees by salary in descending order.
- Main function that creates a collection of employees and prints out their profiles BEFORE and AFTER sorting.
- Log employee records in file.
- Create and support a file that keeps up to date a chart of top 10 state salaries.