Generation

generate functionFri, 31 Mar 2023

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

#include <iostream> #include <string> using namespace std; struct employee{ int id; string name; int salary; }; void insert(employee& e){ cout<<"Enter the id:"<<endl; cin>>e.id; cout<<"Enter the name:"<<endl; cin>>e.name; cout<<"Enter the salary:"<<endl; cin>>e.salary; } void print(employee& e){ cout<<"id: "<<e.id<<endl; cout<<"name: "<<e.name<<endl; cout<<"salary: "<<e.salary<<endl; } void search(employee* list, int size){ int x; cout<<"Enter the id of the emplyee:"<<endl; cin>>x; int found = 0; for(int i=0; i<size; i++){

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