Generation

generate functionFri, 31 Mar 2023

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

#include <iostream> using namespace std; struct emp { int id; string name; int salary; string post; int day; string month; int year; }; emp e[20]; int x; void enter() { cout<<"Enter the number of employees: "; cin>>x; for(int i=0; i<x; i++) { cout<<"Enter id of employee "<<i+1<<": "; cin>>e[i].id; cout<<"Enter name of employee "<<i+1<<": "; cin>>e[i].name; cout<<"Enter salary of employee "<<i+1<<": "; cin>>e[i].salary; cout<<"Enter post of employee "<<i+1<<": "; cin>>e[i].post; cout<<"Enter day of birth of employee "

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