Generation

generate functionFri, 31 Mar 2023

انشاء نظام باستخدام السجلات لادخال ببانات 10 موظفين مع ارقامهم ورواتبهم مع امكانية اختيار المستخدم ويظهر للمستخدم رسائل توضحية للاختيار دالة ادخال البيانات للموظفين دالة طباعة بيانات الموظفين دالة للبحث عن موظف داخل السجل دالة لترتيب الموظفين حسب اكبر راتب

struct employee{ char name[20]; int salary; }; employee employees[10]; void input() { for (int i = 0; i < 10; i++) { cout << "please enter the name of the employee: "; cin.getline(employees[i].name, 20); cout << "please enter the salary of the employee: "; cin >> employees[i].salary; cin.ignore(); } } void print() { for (int i = 0; i < 10; i++) { cout << employees[i].name << " " << employees[i].salary << endl; } } void search() { cout << "enter the name of the employee: "; char name[20]; cin.getline(name, 20); for (int i = 0; i < 10; i++) { if (strcmp(employees[i].name, name) == 0) { cout << employees

Want to kickstart your project?Use the new AI Studio to create your code