LIMELIGHT
Active Member
- تاريخ التسجيل
- 28 سبتمبر 2009
- المشاركات
- 28
- المجموعة
- ذكر
- الدفعة الدراسية
- معلومة خاصة
- الكلية
- كلية تقنية المعلومات
السلام عليكم.....
عندي سؤال يتعلق بـــ ITCS102 ..
السؤال يتعلق بـــ Class و بــــStruct
احد يقدر احله وبكوون شااااكر له ..
او على الاقل افهمني اياه
السؤال
في حال عدم وضوح السؤال , يوجد نسخة له في المرفقات
شكرا
عندي سؤال يتعلق بـــ ITCS102 ..
السؤال يتعلق بـــ Class و بــــStruct
احد يقدر احله وبكوون شااااكر له ..
او على الاقل افهمني اياه
السؤال
Consider the following structure Date
struct Date
{
int month;
int day;
int year;
};
Use the class EmployeeInfo that uses the Date structure in solving the problem below
class EmployeeInfo
{
private:
int ID;
string firstname;
string lastname;
double salary;
Date hiredate;
public:
void setInfo(int, string, string, double, date);
int getID() const;
string getFname() const;
string getLname() const;
double getSalary() const;
Date getDate();
EmployeeInfo ();
EmployeeInfo (int,string,string,double,Date);
};
1. Write the code for each member functions.
2. Write a program that defines array of EmployeeInfo of size 15. The program should ask the user to enter the data of those employees and store them in the array. Then the program displays the information of employee that has largest salary.
struct Date
{
int month;
int day;
int year;
};
Use the class EmployeeInfo that uses the Date structure in solving the problem below
class EmployeeInfo
{
private:
int ID;
string firstname;
string lastname;
double salary;
Date hiredate;
public:
void setInfo(int, string, string, double, date);
int getID() const;
string getFname() const;
string getLname() const;
double getSalary() const;
Date getDate();
EmployeeInfo ();
EmployeeInfo (int,string,string,double,Date);
};
1. Write the code for each member functions.
2. Write a program that defines array of EmployeeInfo of size 15. The program should ask the user to enter the data of those employees and store them in the array. Then the program displays the information of employee that has largest salary.
في حال عدم وضوح السؤال , يوجد نسخة له في المرفقات
شكرا
