موقع طلبة جامعة البحرين

يمكنك تصفح الموقع كزائر ولكن ندعوك لتسجيل عضوية خاصة بك لتحصل على كافة الصلاحيات مثل تنزيل ملفات المكتبة وقراءة تعليقات هيئة التدريس وغيرها. يمكنك الحصول على عضوية مجانية بالضغط على زر تسجيل. إذا قمت بالتسجيل مسبقا فيمكنك الضغط على زر دخول.

تسجيل دخول
  • قسم المكتبة الجامعية مغلق مؤقتا بعد الاستهداف التي تعرضت له بعض خدمات أمازون في البحرين، جاري استرجاع الملفات ونقلها إلى سيرفرات جديدة وسيتم بعدها اعادة افتتاح المكتبة

ITCS112 - ITCS104 - ITCS102 للفصل الصيفي 2014 - 2015

انا حليت السؤال كامل تقريبا بس ال3 أسئلة اللي سألتهم أمس ماعرفت شلون :/



PART (A)

Implement a class named MenuType for a restaurant. The class includes the following data members: Name (string), price (float) and Type (string) which specifies that plate offered for “Breakfast”, “Lunch” or “Dinner”.
And the following public member's functions:
1) A constructor with default parameters. The constructor must output the following message: "Object has been created".
2) A set function to all data members of the object.
3) A get function to return all data members of the object.
4) A function ShowMenu to display all data of the object.
5) IncreasePrice which adds an amount to the Price of the object


PART (B)
In the main function do the following:
1) Write one statement to declare an array Name MenuList with maximum size 50 of Type MenuType.
2) Write the code to enter (from the user) data of four objects in array MenuList
3) Write the code to output all the items offered in "Lunch" time.
4) Write the code to increase the price of all items in Menulist by 0.5 BD.
​


ياريت تخلون السؤال كامل عشان أقدر أحله :nosweat:
 
انا حليت السؤال كامل تقريبا بس ال3 أسئلة اللي سألتهم أمس ماعرفت شلون :/



PART (A)

Implement a class named MenuType for a restaurant. The class includes the following data members: Name (string), price (float) and Type (string) which specifies that plate offered for “Breakfast”, “Lunch” or “Dinner”.
And the following public member's functions:
1) A constructor with default parameters. The constructor must output the following message: "Object has been created".
2) A set function to all data members of the object.
3) A get function to return all data members of the object.
4) A function ShowMenu to display all data of the object.
5) IncreasePrice which adds an amount to the Price of the object


PART (B)
In the main function do the following:
1) Write one statement to declare an array Name MenuList with maximum size 50 of Type MenuType.
2) Write the code to enter (from the user) data of four objects in array MenuList
3) Write the code to output all the items offered in "Lunch" time.
4) Write the code to increase the price of all items in Menulist by 0.5 BD.
​

تفضلوا .. :smile2:

كود:
//Noise-X
# include <iostream>
# include <string>
using namespace std;


class MenuType
{
	string Name , Type;
	float price;
public:
	MenuType();
	void set (string,string,float);
	void get (string&,string&,float&);
	void ShowMenu ();
	void IncreasePrice (float);
	
};
void MenuType::set (string n,string t,float p)
{
	Name=n;  Type=t;  price=p;
}
void MenuType::get (string &n,string &t,float &p)
{
	n=Name;  t=Type;  p=price;
}
void MenuType::ShowMenu ()
{
	cout<<"\nName : "<<Name<<endl;
	cout<<"Type : "<<Type<<endl;
	cout<<"Price : "<<price<<endl;
}
void MenuType::IncreasePrice (float i)
{
	price+=i;
}
MenuType::MenuType()
{
	cout<<"Object has been created"<<endl;
}


int main()
{
	MenuType MenuList [50];
	string n,t;
	float p;
	for (int i=0;i<2;i++)
	{
		cout<<"\nEnter name : ";cin>>n;
		cout<<"Enter Type : ";cin>>t;
		cout<<"Enter price : ";cin>>p;
		MenuList[i].set(n,t,p);
	}
	for (int i=0;i<2;i++)
	{
		MenuList[i].get(n,t,p);
		if (t=="Lunch"||t=="lunch")
			MenuList[i].ShowMenu ();
		MenuList[i].IncreasePrice(0.5);
	}
	return 0;
}
 
تفضلوا .. :smile2:

كود:
//Noise-X
# include <iostream>
# include <string>
using namespace std;


class MenuType
{
    string Name , Type;
    float price;
public:
    MenuType();
    void set (string,string,float);
    void get (string&,string&,float&);
    void ShowMenu ();
    void IncreasePrice (float);
    
};
void MenuType::set (string n,string t,float p)
{
    Name=n;  Type=t;  price=p;
}
void MenuType::get (string &n,string &t,float &p)
{
    n=Name;  t=Type;  p=price;
}
void MenuType::ShowMenu ()
{
    cout<<"\nName : "<<Name<<endl;
    cout<<"Type : "<<Type<<endl;
    cout<<"Price : "<<price<<endl;
}
void MenuType::IncreasePrice (float i)
{
    price+=i;
}
MenuType::MenuType()
{
    cout<<"Object has been created"<<endl;
}


int main()
{
    MenuType MenuList [50];
    string n,t;
    float p;
    for (int i=0;i<2;i++)
    {
        cout<<"\nEnter name : ";cin>>n;
        cout<<"Enter Type : ";cin>>t;
        cout<<"Enter price : ";cin>>p;
        MenuList[i].set(n,t,p);
    }
    for (int i=0;i<2;i++)
    {
        MenuList[i].get(n,t,p);
        if (t=="Lunch"||t=="lunch")
            MenuList[i].ShowMenu ();
        MenuList[i].IncreasePrice(0.5);
    }
    return 0;
}








شكراااا :smile2::smile2: طلع في if statement وباقي البرنامج تقريبا مثل حلي :smile2::smile2:
 
Name (string), price (float) and Type (string) which specifies that plate offered for “Breakfast”, “Lunch” or “Dinner”. Write one statement to declare an array Name MenuList with maximum size 50 of Type MenuType. A constructor with default parameters. The constructor must output the following message: "Object has been created".

الكلاس فيه برايفت

الاسم - سترنق
البرايس - فلوت
النوع - سترنق

-------------

الستيتمنت مطلوب تضيفين أري حجمه 50 و التايب ماله menuType
يعني هو فيريابل الى الكلاس

menuType menuList[50];

------------

الكونستراكتر وذ ديفولت .. يعني في الكلاس .. البروتوتايب تخلين لكل براميتر قيمة افتراضية
بكون سبيل المثال
menuType (string n = noun, string p=0.00 , string t = noun );

و لما تحطين الكونستراكتر ويا الفنكشنات بره الكلاس
اتحطين البروتوتايب بدون القيم الديفولت و كونستراكتر عادية .. الفرق طالبين ستيتمنت سي آوت الى الجملة المحطوطة
 
تفضلوا .. :smile2:

كود:
//Noise-X
# include <iostream>
# include <string>
using namespace std;


class MenuType
{
    string Name , Type;
    float price;
public:
    MenuType();
    void set (string,string,float);
    void get (string&,string&,float&);
    void ShowMenu ();
    void IncreasePrice (float);
    
};
void MenuType::set (string n,string t,float p)
{
    Name=n;  Type=t;  price=p;
}
void MenuType::get (string &n,string &t,float &p)
{
    n=Name;  t=Type;  p=price;
}
void MenuType::ShowMenu ()
{
    cout<<"\nName : "<<Name<<endl;
    cout<<"Type : "<<Type<<endl;
    cout<<"Price : "<<price<<endl;
}
void MenuType::IncreasePrice (float i)
{
    price+=i;
}
MenuType::MenuType()
{
    cout<<"Object has been created"<<endl;
}


int main()
{
    MenuType MenuList [50];
    string n,t;
    float p;
    for (int i=0;i<2;i++)
    {
        cout<<"\nEnter name : ";cin>>n;
        cout<<"Enter Type : ";cin>>t;
        cout<<"Enter price : ";cin>>p;
        MenuList[i].set(n,t,p);
    }
    for (int i=0;i<2;i++)
    {
        MenuList[i].get(n,t,p);
        if (t=="Lunch"||t=="lunch")
            MenuList[i].ShowMenu ();
        MenuList[i].IncreasePrice(0.5);
    }
    return 0;
}









بس في شي بسيط :)
HTML:
public:    MenuType(); \\ i think we have to declare values because of the question : A constructor with default parameters


public:        MenuType(string= " " , float = 0, string = " ");  \\ this is my solution is it wrong ??
 
الكلاس فيه برايفت

الاسم - سترنق
البرايس - فلوت
النوع - سترنق

-------------

الستيتمنت مطلوب تضيفين أري حجمه 50 و التايب ماله menuType
يعني هو فيريابل الى الكلاس

menuType menuList[50];

------------

الكونستراكتر وذ ديفولت .. يعني في الكلاس .. البروتوتايب تخلين لكل براميتر قيمة افتراضية
بكون سبيل المثال
menuType (string n = noun, string p=0.00 , string t = noun );

و لما تحطين الكونستراكتر ويا الفنكشنات بره الكلاس
اتحطين البروتوتايب بدون القيم الديفولت و كونستراكتر عادية .. الفرق طالبين ستيتمنت سي آوت الى الجملة المحطوطة



شكراا لك :) :smile2:
 
بس في شي بسيط :)
HTML:
public:    MenuType(); \\ i think we have to declare values because of the question : A constructor with default parameters


public:        MenuType(string= " " , float = 0, string = " ");  \\ this is my solution is it wrong ??

في البداية سويت جذي بس شفت السؤال مو كاتب نخلي قيم ليهم فخليت بس " cout "

في شغله نسيتها أنا ..
:nosweat:

كود:
do{cout<<"Enter Type : ";cin>>t;}while (t!="Breakfast"&&t!="Lunch"&&t!="Dinner");
 
PART(A)
a. Write the definition of a structure type named nameType, which includes the following components: firstName and lastName.
b. Write the definition of a structure type named dateType, which include the following components: day, month, and year;
c. Write the definition of a structure type named personalInfoType, which include the following components: ID of type long, name of type nameType, and DateOfBirth of type dateType.
d. Write a function named getData that take as parameter:
a. Employees: an array of type personalInfoType.
b. numEmployee: number of items in the Employees array.
The function should prompt the user to enter the ID, name, and DateOfBirth of all Employees.
e. Write a function named printData that take as parameter:
a. Employees: an array of type personalInfoType.
b. numEmployee: number of items in the Employees array.
The function should output the ID, name, and DateofBirth of all Employees.
f. Write a function named bornSameYearMonth that take as parameter:
a. Employees: an array of type personalInfoType.
b. numEmployee: number of items in the Employees array.
c. Emp1: of type personType.
The function should print the names (first name and last name) of all Employees born on the same month and year as Emp1.

PART(B)
Write a main program to test your functions.


ممكن حل هالاسؤال :blushing: ؟​
 
جيكي هني الحل :smile2:


https://www.uob-bh.com/forum/t29349-23/


PART(A)
a. Write the definition of a structure type named nameType, which includes the following components: firstName and lastName.
b. Write the definition of a structure type named dateType, which include the following components: day, month, and year;
c. Write the definition of a structure type named personalInfoType, which include the following components: ID of type long, name of type nameType, and DateOfBirth of type dateType.
d. Write a function named getData that take as parameter:
a. Employees: an array of type personalInfoType.
b. numEmployee: number of items in the Employees array.
The function should prompt the user to enter the ID, name, and DateOfBirth of all Employees.
e. Write a function named printData that take as parameter:
a. Employees: an array of type personalInfoType.
b. numEmployee: number of items in the Employees array.
The function should output the ID, name, and DateofBirth of all Employees.
f. Write a function named bornSameYearMonth that take as parameter:
a. Employees: an array of type personalInfoType.
b. numEmployee: number of items in the Employees array.
c. Emp1: of type personType.
The function should print the names (first name and last name) of all Employees born on the same month and year as Emp1.

PART(B)
Write a main program to test your functions.


ممكن حل هالاسؤال :blushing: ؟​
 
ههههه توني بطلت النوت كلامك صحيح :smile2::smile2: بس انا كنت متخربطة شوي بينه وبين النوع الثاني ....

بس أخووي سؤاال اممم مو رااضي يسوي increase للــ price :schmoll::no:


في البداية سويت جذي بس شفت السؤال مو كاتب نخلي قيم ليهم فخليت بس " cout

في شغله نسيتها أنا ..
:nosweat:

كود:
do{cout<<"Enter Type : ";cin>>t;}while (t!="Breakfast"&&t!="Lunch"&&t!="Dinner");
 
Assignment#5
Create a class called BloodDonor that maintains information about blood donors in a blood bank having the following data members:
1. IdNumber, // long int
2. name, //Name of donor
3. bloodGroup//String
4. home_Phone//String
5. mobile_Phone//String
6. address // struct Address that holds int house number, int road number, int block
number, string city, and string country
It will also have the following member functions:
1. Constructor function with default values IdNumber = 0, name = "", bloodGroup = "",
home_Phone="", mobile_Phone="", address={0,0,0,"",""}.
2. An overloaded constructor that takes the same parameters of the constructor in except Address for the address
3. Set and get functions for all data members. The setBloodgroup function should check the validity of the blood group before assigning it to bloodGroup by calling the function Is_BloodBroup_Valid described below.
4. Is_BloodGroup_Valid // takes a string as parameter and return true if it is a valid group and false if not. The only possible blood groups are A+, A-, B+, B-, O+, O-, AB+, AB-.
5. InputDetails// asks the user to enter all the details of a donor and then assign the values to the data members by calling the appropriate set functions.
6. printDetails // Print the details (IdNumber,name, bloodGroup, home phone, mobile phone, and address) of the donor
8. Destructor function.
PART A
Write the class BloodDonor and the code of the member functions.
PART B
Write a main function which includes the following:
1. Creates an instance (object) named donor1 of type BloodDonor with id=567JJ9, name is
Ahmed, blood group is B+, home phone="17123456", mobile phone="39999999",
address={ l,l,l,"Manama","Bahrain"}-
2. Write a statement to change the mobile phone to "39888888".
3. Write a statement to print the mobile phone.
4. Write a statement to print the details of donor.
5. Create another object named donor2 of type BloodDonor.
6. Ask the user to enter the details of the donor2 by calling InputDetails function
7. Print the details of donor2.


بيذبحني لكلاس مو فاهمه ليه عدل وباجر عندي كويز .. ابي احد حليو يحل السؤال وصلت المين وشيرت
 
بيذبحني لكلاس مو فاهمه ليه عدل وباجر عندي كويز .. ابي احد حليو يحل السؤال وصلت المين وشيرت

مسامحة ما يصير نسوي الإجابة ..
"
حصلت ليي تزفيت .. " << :RpS_lol:
اذا ممكن وين اللي شيرتون فيه عشان نقدر نساعدكم
 
مسامحة ما يصير نسوي الإجابة ..
"
حصلت ليي تزفيت .. " << :RpS_lol:
اذا ممكن وين اللي شيرتون فيه عشان نقدر نساعدكم

اووكي ومسامحه خليناهم يزفونكم :RpS_huh: ابي جم جزئية اذا تقدر تشرحهم ليي جزئية ال fuction overload اني احس مسويتنها غلط ,, و الaddress كل ما احط ال defult value ما يصير ليي يطلع فيه ايرور وبعد المين فنكشن ,, السؤال الي اغير الرقم مو عارفة شلون اسويه :smile2::smile2: وشُكرا مقدما
 
اووكي ومسامحه خليناهم يزفونكم :RpS_huh: ابي جم جزئية اذا تقدر تشرحهم ليي جزئية ال fuction overload اني احس مسويتنها غلط ,, و الaddress كل ما احط ال defult value ما يصير ليي يطلع فيه ايرور وبعد المين فنكشن ,, السؤال الي اغير الرقم مو عارفة شلون اسويه :smile2::smile2: وشُكرا مقدما

هذي كيفية الـ " class " ...
كود:
class BloodDonor 
{
private:
    int IdNumbe;
    string name,bloodGroup,home_Phone,mobile_Phone;
    struct Address 
    {
        int house_number,road_number,block_number;
        string city, country;
    };
    Address  address;
public:
    BloodDonor(int, string, string,string, string,int,int,int,string,string);
    ........
    .....
    ....
    ..
    .
};

بالنسبة لـ " overloaded constructor " هذي بتكون مثل الـ " default constructor " بس ال " parameters " تختلف ..

كود:
BloodDonor::BloodDonor(int id=0, string n="", string bg="",string hp="", string mp="",int h=0,int r=0,int b=0,string ci="",string co="")
{
    IdNumbe=id;
    name=n;
    bloodGroup=bg;
    home_Phone=hp;
    mobile_Phone=mp;
    address.house_number=h;
    address.road_number=r;
    address.block_number=b;
    address.city=ci;
    address.country=co;
}
BloodDonor::BloodDonor(int id=0, string n="", string bg="",string hp="", string mp="")
{
    IdNumbe=id;
    name=n;
    bloodGroup=bg;
    home_Phone=hp;
    mobile_Phone=mp;
}

الـ " default value " للـ " address " يصير وياهم مرة وحده .. :smile2:

وعن تغيير الرقم .. << سالفته عويصة شوي :bleh:​
نسوي " get " بعدين نغير قيمة الرقم ونسوي " set " بس
 
هل من أحد هنا يا قوم ال UOB ؟؟
 
ممكن حل السؤال.

Create a class called BloodDonor that maintains information about blood donors in a blood bank having the following data members:

  1. IdNumber, // long int
  2. name, //Name of donor
  3. bloodGroup//String
  4. home_Phone//String
  5. mobile_Phone//String
  6. address // struct Address that holds int house number, int road number, int block
    number, string city, and string country
It will also have the following member functions:

  1. Constructor function with default values IdNumber = 0, name = "", bloodGroup = "",
    home_Phone="", mobile_Phone="", address={0,0,0,"",""}.
  2. An overloaded constructor that takes the same parameters of the constructor in except Address for the address
  3. Set and get functions for all data members. The setBloodgroup function should check the validity of the blood group before assigning it to bloodGroup by calling the function Is_BloodBroup_Valid described below.
  4. Is_BloodGroup_Valid // takes a string as parameter and return true if it is a valid group and false if not. The only possible blood groups are A+, A-, B+, B-, O+, O-, AB+, AB-.
  5. InputDetails// asks the user to enter all the details of a donor and then assign the values to the data members by calling the appropriate set functions.
  6. printDetails // Print the details (IdNumber,name, bloodGroup, home phone, mobile phone, and address) of the donor
8. Destructor function.
PART A
Write the class BloodDonor and the code of the member functions.
PART B
Write a main function which includes the following:

  1. Creates an instance (object) named donor1 of type BloodDonor with id=567JJ9, name is
    Ahmed, blood group is B+, home phone="17123456", mobile phone="39999999",
    address={ l,l,l,"Manama","Bahrain"}-
  2. Write a statement to change the mobile phone to "39888888".
  3. Write a statement to print the mobile phone.
  4. Write a statement to print the details of donor.
  5. Create another object named donor2 of type BloodDonor.
  6. Ask the user to enter the details of the donor2 by calling InputDetails function
  7. Print the details of donor2.
 
Assignment#5
Create a class called BloodDonor that maintains information about blood donors in a blood bank having the following data members:​


  1. [*=left]IdNumber, // long int
    [*=left]name, //Name of donor
    [*=left]bloodGroup//String
    [*=left]home_Phone//String
    [*=left]mobile_Phone//String
    [*=left]address // struct Address that holds int house number, int road number, int block
    number, string city, and string country
It will also have the following member functions:​


  1. [*=left]Constructor function with default values IdNumber = 0, name = "", bloodGroup = "",
    home_Phone="", mobile_Phone="", address={0,0,0,"",""}.
    [*=left]An overloaded constructor that takes the same parameters of the constructor in except Address for the address
    [*=left]Set and get functions for all data members. The setBloodgroup function should check the validity of the blood group before assigning it to bloodGroup by calling the function Is_BloodBroup_Valid described below.
    [*=left]Is_BloodGroup_Valid // takes a string as parameter and return true if it is a valid group and false if not. The only possible blood groups are A+, A-, B+, B-, O+, O-, AB+, AB-.
    [*=left]InputDetails// asks the user to enter all the details of a donor and then assign the values to the data members by calling the appropriate set functions.
    [*=left]printDetails // Print the details (IdNumber,name, bloodGroup, home phone, mobile phone, and address) of the donor
8. Destructor function.
PART A
Write the class BloodDonor and the code of the member functions.
PART B
Write a main function which includes the following:​


  1. [*=left]Creates an instance (object) named donor1 of type BloodDonor with id=567JJ9, name is
    Ahmed, blood group is B+, home phone="17123456", mobile phone="39999999",
    address={ l,l,l,"Manama","Bahrain"}-
    [*=left]Write a statement to change the mobile phone to "39888888".
    [*=left]Write a statement to print the mobile phone.
    [*=left]Write a statement to print the details of donor.
    [*=left]Create another object named donor2 of type BloodDonor.
    [*=left]Ask the user to enter the details of the donor2 by calling InputDetails function
    [*=left]Print the details of donor2.

#include<iostream>
#include<string>
using namespace std;
struct address{
int houseNo;
int roadNo;
int blockNo;
string city;
string country;
};
class BloodDonor
{
private:
long IdNumber;
string name;
string bloodGroup;
string home_Phone;
string mobile_Phone;
address a;
Public:
BloodDonor(long id=0, string n=" ",string bg=" ",string hp=" ",string mp=" ",struct a=("0","0","0"," "," "));
~BloodDonor();
BloodDonor(long id, string n,string bg,string h,string m);
};
void setIdNumber(long);
void setname(string);
void setbloodGroup(string);
void sethome_Phone(string);
void setmobile_Phone(string);
void setaddress(int,int,int,string,string);
long getIDNumber(long);
string getname(string);
string getbloodGroup(string);
string gethome_Phone(string);
string getmobile_Phone(string);
void getaddress(int,int,int,string,string);
bool Is_BloodBroup_Valid(string E);
void InputDetails();
void printDetails();
~BloodDonor();
};
BloodDonor::BloodDonor(long id=0, string n=" ",string bg=" "string hp=" ",string mp=" ",struct a=("0","0","0"," "," "))
{
setIdNumber(0);
setname(" ");
setbloodGroup(" ");
sethome_Phone(" ");
setmobile_Phone(" ");
setaddress(0,0,0,city[],country[]);
}
BloodDonor::BloodDonor(long id, string n,string bg,string hp,string mp)
{
setIdNumber(id);
setname(n);
setbloodGroup(bg);
sethome_Phone(hp);
setmobile_Phone(mp)
}
void BloodDonor::setIdNumber(long)
{
IdNumber=id;
}
void BloodDonor::setname(string)
{
name=n;
}
void BloodDonor::setbloodGroup(string)
{
bloodGroup=bg;
}
void BloodDonor::sethome_Phone(string)
{
home_Phone=hp;
}
void BloodDonor::setmobile_Phone(string)
{
mobile_Phone=mp;
}
void BloodDonor::setaddress(int,int,int,string,string);
{
a.address=(0,0,0,city[],country[]);
}
long BloodDonor::getIDNumber(long)
{
id=IdNumber;
}
string BloodDonor::getname(string)
{
n=name;
}
string BloodDonor::getbloodGroup(string)
{
bg=bloodGroup;
}
string BloodDonor::gethome_Phone(string)
{
hp=home_Phone;
}
string BloodDonor::getmobile_Phone(string)
{
mp=mobile_Phone;
}
void BloodDonor::getaddress(int,int,int,string,string)
{
(0,0,0,city[],country[])=a.address;
}
bool BloodDonor::Is_BloodBroup_Valid(string E)
{
if(BG=="A+"||BG== "A-"||BG== "B+"||BG== "B-"||BG== "0+"||BG== "0-"||BG=="AB+"||BG=="AB")
return true;
else
return false;
}
void BloodDonor::InputDetails()
{
cout<<"enter your IdNumber, name, blood group, home phone, mobile phone, house number,
block number, city and your country"<<endl;
setIdNumber(long);
setname(string);
setbloodGroup(string);
sethome_Phone(string);
setmobile_Phone(string);
setaddress(int,int,int,string,string);
}
void BloodDonor::printDetails()
{
cout<<"Id number="<<IdNumber<<" "<<"name="<<name<<"blood group="<<bloodGroup<<
"home phone="<<home_Phone<<"mobile phone="<<mobile_Phone<<"address="<<address a;
}
int main()
{
bloodDonor donor1(56789,Ahmed,B+,17123456,39999999,1,1,1,manama,Bahrain);
donor1.setmobile(39688888)
cout<<donor1.getMobilephone();
donor1.printDetails();
bloodDonor donor2;
long i,string n,string bg,string hm,string mp,int hn,int rn,int bn, string city,string country;
cout<<"Enter your id:";
cin>>id;
cout<<"Enter your name:";
cin>>n;
cout<<"Enter your home phone:";
cin>>hp;
cout<<"Enter your mobile phone:";
cin>>mp;
cout<<"Enter your house number:";
cin>>hn;
cout<<"Enter your road number:";
cin>>rn;
cout<<"Enter your block number:";
cin>>bn;
cout<<"Enter your city name:";
cin>>city;
cout<<"Enter your country name:";
cin>>country;
donor2.printDetails();
return 0;}

يطلع 7 ايرور​
 
عودة
أعلى أسفل