Bu Khalil
Well-Known Member
- تاريخ التسجيل
- 5 ديسمبر 2009
- المشاركات
- 91
- المجموعة
- ذكر
- الدفعة الدراسية
- 2009
- الكلية
- كلية تقنية المعلومات
- التخصص
- ITCE
الاسايمنت مال اي سكشن ؟
سكشنه يا ذكي ويا الدكتوه ميادة 
شكلك نسيتني هههههه

شكلك نسيتني هههههه
الاسايمنت مال اي سكشن ؟

حليت اسايمنت 5 هع هع

class clocktype{
private:
int hr;
int min;
int sec;
public:
boll equaltime( clocktype other);
};
bool clocktype :: equaltime( clocktype other){
return( hr==other.hr && min other.min && sec == other.sec)
}
السلام عليكم ..
سؤال امتحان المنتصف متى اي يووم وفي اي ساعه وفي وين .. وشنو الي داخل معانا ..؟ لوين يعني ..؟

سلام عليكم
شخبار شعب
بس ممكن مساعده عندي سؤال مو عارف الحل ماله بضبط
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.
ضروري معتاز مساعده
السلام شخباركم عندي اسايمن في ال class بغيت مساعدتكم فيه لاني كنت مريضه وما حضرت المحاضرات ده الدرس بليييز الا عنده الحل او يقدر يساعدني في حله لا يبخل عليي وانه الا عرفت اسوي من نوت البنات هذاا وشكراا
Chap12 lab3
1. Write a definition of a class named SudentType, which includes methods and data members as follows:
The data members are:
1. studentId with type integer
2. student fname with the type string
3. Student lname with the type string
4. Array of marks of the max-size equal 36 with the type double (marks[36]),
5. The number of taken courses of the type integer (length).
The studentType class contains the following members functions:
1) default constructor that initialize all members to zeros and spaces.
2) constructor with the parameters where the parameters are student id and the names of the student.
3) setInfo which set the object with student id, fname and lname .
4) insertNew_marks which adds new mark at the end of the list marks and increase length by 1.
5) printStudent which will print the student personal information in one line, followed by all marks that he/she has been taken, ended with Average.
6) Destructor that output the message: "Object has been deleted"
2. write a function named "InsetNewStudent" that insert a new student at the list of type studentType
Note this function is not a member function of the class.
3. Write a main function to test your class.
1) Write one statement to define an array name StudentList with size 10 of objects of the type the class StudentType.
2) Read data (id, fname and lname) of 3 students into array StudentList by calling function
3) Insert 2 marks for each student in the array.
4) Print out all data of all students in StudentList
#include <iostream>
#include <string>
using namespace std;
class SudentType{
private:
int studentId;
string fname;
string lname ;
double marks[36];
int length;
public:
SudentType(int=0,string ='',string='',double=0.0,int=0);
SudentType(int x, string y, string z);
void setInfo(int,string,string);
void getInfo(int,string,string);
void insertNew_marks(marks l[],length);
void printStudent();
~SudentType();
};
void InsetNewStuden(marks l[],length);
{
for(int i=0; i<length,i++)
ومسامحه اذا كلفت عليكم...
