انشاء نظام باستخدام السجلات لادخال ببانات 10 موظفين مع ارقامهم ورواتبهم مع امكانية اختيار المستخدم ويظهر للمستخدم رسائل توضحية للاختيار دالة ادخال البيانات للموظفين في السجلات دالة طباعة بيانات الموظفين من السجلات دالة للبحث عن موظف داخل السجلات دالة للبحث عن اكبر قيمة داخل السجلات دالة لترتيب الموظفين حسب اكبر راتب
#include <iostream> using namespace std; struct employee{ string name; int id; double salary; }; int main() { employee emp[10]; for (int i = 0; i < 10; i++) { cout << "Enter the name of employee " << i+1 << ": "; cin >> emp[i].name; cout << "Enter the id of employee " << i+1 << ": "; cin >> emp[i].id; cout << "Enter the salary of employee " << i+1 << ": "; cin >> emp[i].salary; cout << endl; } cout << "---------------------------" << endl; for (int i = 0; i < 10; i++) { cout << "The name of employee " << i+1 << " is: " << emp[i].name << endl; cout << "The id of employee " << i+