Staff Management System c ++ based Closing large multi-state operations to slightly

topic

Based polymorphic Staff Management System

  1. First to enter the welcome screen, allowing users to input different options, enter the different options
    1.1 0 - Exit
    . 1.21 - an increase workers
    1.3 2 - Remove the workers
    . 1.4 3 - shows all staff information
    1.5 4 - Change in Staff Information
    1.6 5 - Finding workers
    1.7 6 - sorted by number of workers
    . 1.8 7-- empty document
  2. Exit - Exit Management System
  3. Increase staff, add new employees, can batch add more workers, workers are divided into general staff, manager and president
  4. Delete workers, workers can be deleted in accordance with the number of workers
  5. Display all information workers, first determine whether a file exists or is empty, and the next if there is a documented case, presenting information for all employees in the paper records
  6. Change in Staff information, in accordance with the number of workers entered by the user, modify the new information workers, and saved to a file
  7. Find information workers look for in two ways, according to a number of workers to find, according to a name search, content if the user is looking for is not empty display of the trade union information, if it is empty prompted to look for nonexistent employees
  8. All employees sorted by employee ID, the user may be entered in ascending or descending order according to the number of workers, and stored in the file
  9. Empty document, you can file within the current record all empty.

The case design of the knowledge points: object-oriented encapsulation, inheritance, polymorphism, and file IO stream, there is a base class Worker workers in the design, respectively, and the derived class as an ordinary employee, manager, and president, the base class pure virtual function implemented subclasses were made. Then there is a document management classes, make different choices for the user to do different processing respectively. Deletions can perform basic functions of the system change search.

Code

The complete code in this strategy, need can be downloaded.

Staff Management System

Published 47 original articles · won praise 3 · Views 1428

Guess you like

Origin blog.csdn.net/weixin_42076938/article/details/104783801