.


:




:

































 

 

 

 


Home




 

Home :

Home_Number char* public ()
iHome int public
EtagCount int public
MenCount int public
TypeHome HomeType public (: , , )
NumbApartament int public
HomeRemont   BOOL   public  

 

 

Home

Home :

/ /
Home() Home &
Home(Home & H) Home & : Home &
Home(Home * pH) Home & : Home *
Home(const char *HomName, const char *Number) Home & : HomName - Number -
Home(const char *HomName, const char *Number, int Numb) Home & : HomName - , Number - Numb -
Home(const char *HomName, const char *Number, int Numb, int Etag, int Men=0,HomeType Type = fast,int Apart=0) Home & : HomName - , Number - Numb - , Etag - , Men - , Type , Apart -

 

:

:

Home H1;

:

Home H2("",".2");

, :

Home H3("", ".3", 3);

, , :

Home H4("", ".4", 4,2);

, , , :

Home H5("", ".5", 5,2,3);

, , , , :

Home H6("", ".6", 6,2,3, fast);

, , , , , :

Home H7("", ".7", 7,2,3, multiple, 5);

 

:

:

Home H6("", ".5", 5,2,3);

Home Test(H5);

H5.printOn(cout);

Test.printOn(cout);

:

Home *pHome = new Home (H6);

H6.printOn(cout);

pHome->printOn(cout);

delete pHome;

 

 

-:

Home Temp;

Home H7("", ".7", 7,2,3, multiple, 5);

Temp = H7;

H7.printOn(cout);

Temp.printOn(cout);

:

Home H6("", ".5", 5,2,3);

Home *pHome = new Home (H6);

Home *pHome1 = new Home (* pHome);

pHome->printOn(cout);

pHome1->printOn(cout);

delete pHome;

delete pHome1;

 

Home

:

~ Home ();

:

{

Home *pHome = new Home (H6);

pHome->printOn(cout);

delete pHome;

}

. delete.

 

Home

Home.

 

/
void setName(const char *HomName, const char *Number=NULL) void HomName - Number -
const char *getName() const char *
const char *getNumb() const char *
int getNo() int
void getParam(int & iH, int & Etag,int & Men,HomeType & Type, int & Apart) void iH - , Etag - , Men - , Type ( HomeType . ), Apart -
void setParam(int iH, int Etag,int Men,HomeType Type, int Apart) void iH - , Etag - , Men - , Type ( HomeType . ), Apart -
void setAllParam(const char *HomName, const char *Number, int iH, int Etag, int Men,HomeType Type, int Apart, BOOL rem = false) void HomName - , Number - iH - , Etag - , Men - , Type ( HomeType . ), Apart - rem -
virtual void printOn(ostream & out) void Out ostream

 

Home:

 

:

Temp.setName("");

Temp.printOn(cout);

 

:

Temp.setName("",".11/12");

Temp.printOn(cout);

 

:

cout << "Name = "<< Temp.getName() << endl;

 

:

cout << " = "<< Temp.getNumb() << endl;

 

:

cout << " = "<< Temp.getNo() << endl;

 

:

cout << ": "<< endl;

int iH, Etag, Men, Apart;

HomeType Type;

Temp.getParam(iH, Etag, Men, Type, Apart);

cout << " -" << iH <<

" -" << Etag << " -" << Men << endl;

if (Type == fast)

cout << " - ";

if (Type == multiple)

cout << " - ";

if (Type == complex)

cout << " - ";

cout << " - " << Apart << endl;

 

:

Temp.setParam(1,2,3,fast, 5);

Temp.printOn(cout);

 

:

 

Temp.setAllParam("", "10/8 .3", 11,12,13,fast, 15, true);

Temp.printOn(cout);

 

Home

 

:

Home operator =(Home & H);

:

Home Temp;

Home H7("", ".7", 7,2,3, multiple, 5);

Temp = H7;

H7.printOn(cout);

Temp.printOn(cout);

 





:


: 2017-04-15; !; : 252 |


:

:

.
==> ...

1373 - | 1214 -


© 2015-2024 lektsii.org - -

: 0.016 .