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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
29 views6 pages
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.