انشاء نظام بلغة c++ باستخدام السجلات لادخال ببانات 10 موظفين مع ارقامهم ورواتبهم مع امكانية اختيار المستخدم ويظهر للمستخدم رسائل توضحية للاختيار 1- دالة ادخال البيانات للموظفين في السجلات 2- دالة طباعة بيانات الموظفين من السجلات 3- دالة للبحث عن موظف داخل السجلات 4- دالة للبحث عن اكبر قيمة داخل السجلات 5- دالة لترتيب الموظفين حسب اكبر راتب
#include <iostream> using namespace std; struct Employee { int number; float sal; }; void print_records(Employee employee[], int size); void print_all(Employee employee[], int size); void print_highest_sal(Employee employee[], int size); void sort_by_sal(Employee employee[], int size); int main() { int num_of_emp; cout << "Enter Number of Employees: "; cin >> num_of_emp; Employee emp[num_of_emp]; for (int i = 0; i < num_of_emp; i++) { cout << "Enter Employee Number " << i + 1 << ": "; cin >> emp[i].number; cout << "Enter Employee Salary " << i + 1 << ": "; cin >> emp[i].sal; cout << endl; } cout << "1- To print All