This C++ program sorts employee data stored in a structure by name using a bubble sort algorithm. It defines an employee class with private data members to store employee ID, name, age, and salary information for 5 employees. Member functions getdata(), sortdata(), and display() are used to accept input, perform the bubble sort on employee names, and output the sorted employee records respectively.
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
24 views
Source Code Sorting Names
This C++ program sorts employee data stored in a structure by name using a bubble sort algorithm. It defines an employee class with private data members to store employee ID, name, age, and salary information for 5 employees. Member functions getdata(), sortdata(), and display() are used to accept input, perform the bubble sort on employee names, and output the sorted employee records respectively.