/ /   m o s h a v e r   A m l a k . c p p   
 
 / /   P r o g r a m m e r   A l i 
 
 
 
 # i n c l u d e   " s t d a f x . h " 
 
 # i n c l u d e   < i o s t r e a m > 
 
 # i n c l u d e   " c o n i o . h " 
 
 # i n c l u d e   < s t r i n g > 
 
 # i n c l u d e   < d o s . h > 
 
 u s i n g   n a m e s p a c e   s t d ; 
 
 i n t   n , c b = 0 , c r = 0 , c s = 0 , a b = 0 , a r = 0 , a s = 0 , f l a g , p o s , i b = 1 , i r = 1 , i s = 1 ; 
 
 c h a r   e b n a m e [ 2 0 ] , e r n a m e [ 2 0 ] , e s n a m e [ 2 0 ] , n a m e [ 2 0 ] ; 
 
 c h a r   e b a d d r e s s [ 8 0 ] , e r a d d r e s s [ 8 0 ] , e s a d d r e s s [ 8 0 ] ; 
 
 i n t   _ g e t c h ( ) ; 
 
 
 
 / / D'3  1GF
 
 c l a s s   B { 
 
 p u b l i c : 
 
 i n t   b n u m ; 
 
 c h a r   b n a m e [ 2 0 ] ; 
 
 c h a r   b a d d r e s s [ 8 0 ] ; 
 
 p u b l i c : 
 
 / / *'(9  'A2H/F  1GF
 
 v o i d   a d d _ b ( ) { 
 
 c o u t < < " \ t \ t \ t   S h o m a   B   r o   e n t e k h a b   k a r d i n " < < e n d l ; 
 
 c o u t < < " \ t \ t \ t ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ " < < e n d l ; 
 
 c b + + ; 
 
 b n u m = 1 0 0 + c b ; 
 
 c o u t < < " \ n e n t e r   c o d e : " < < b n u m ; 
 
 c o u t < < " \ n e n t e r   n a m e : " ; 
 
 c i n > > b n a m e ; 
 
 c o u t < < " \ n e n t e r   a d d r e s s : " ; 
 
 c i n > > b a d d r e s s ; 
 
 
 
 } 
 
 / / *'(9  FE'4  1GF  
 
 v o i d   d i s p _ b ( ) 
 
 { 
 
 c o u t < < b n u m < < " \ t \ t " < < b n a m e < < " \ t \ t " < < b a d d r e s s < < e n d l ; 
 
 } 
 
 
 
 
 
 } ; B   b [ 1 0 0 ] ; 
 
 
 
 / / D'  3  ','1G
 
 c l a s s   R { 
 
 p u b l i c : 
 
 i n t   r n u m ; 
 
 c h a r   r n a m e [ 2 0 ] ; 
 
 c h a r   r a d d r e s s [ 8 0 ] ; 
 
 p u b l i c : 
 
 / / *'(9  'A2H/F  ','1G
 
 v o i d   a d d _ r ( ) { 
 
 c o u t < < " \ t \ t \ t   s h o m a   R   r o   b a r a y e   e z a f   k a r d a n   e n t e k h a b   k a r d i d   " < < e n d l ; 
 
 c o u t < < " \ t \ t \ t ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ " < < e n d l ; 
 
 c r + + ; 
 
 r n u m = 1 0 0 + c r ; 
 
 c o u t < < " \ n e n t e r   c o d e : " < < r n u m ; 
 
 c o u t < < " \ n e n t e r   n a m e : " ; 
 
 c i n > > r n a m e ; 
 
 c o u t < < " \ n e n t e r   a d d r e s s : " ; 
 
 c i n > > r a d d r e s s ; 
 
 } 
 
 
 
 / / *'(9  FE'4  ','1G  
 
 v o i d   d i s p _ r ( ) 
 
 { 
 
 c o u t < < r n u m < < " \ t \ t " < < r n a m e < < " \ t \ t " < < r a d d r e s s < < e n d l ; 
 
 } 
 
 } ; R   r [ 1 0 0 ] ; 
 
 
 
 / / D'3  A1H4  
 
 c l a s s   S { 
 
 p u b l i c : 
 
 i n t   s n u m ; 
 
 c h a r   s n a m e [ 2 0 ] ; 
 
 c h a r   s a d d r e s s [ 8 0 ] ; 
 
 p u b l i c : 
 
 
 
 / / *'(9  'A2H/F  A1H4  
 
 v o i d   a d d _ s ( ) { 
 
 c o u t < < " \ t \ t \ t       s h o m a   S   r o   b a r a y e   e z a f   e n t e k h a b   k a r d i n   " < < e n d l ; 
 
 c o u t < < " \ t \ t \ t ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ " < < e n d l ; 
 
 c s + + ; 
 
 s n u m = 1 0 0 + c s ; 
 
 c o u t < < " \ n e n t e r   c o d e : " < < s n u m ; 
 
 c o u t < < " \ n e n t e r   n a m e : " ; 
 
 c i n > > s n a m e ; 
 
 c o u t < < " \ n e n t e r   a d d r e s s : " ; 
 
 c i n > > s a d d r e s s ; 
 
 } 
 
 / / *'(9  FE'4  A1H4
 
 v o i d   d i s p _ s ( ) 
 
 { 
 
 c o u t < < s n u m < < " \ t \ t " < < s n a m e < < " \ t \ t " < < s a d d r e s s < < e n d l ; 
 
 } 
 
 
 
 } ; S   s [ 1 0 0 ] ; 
 
 
 
 i n t   _ g e t c h ( v o i d ) ; 
 
 / / *'(9  5A-G  'HD
 
 v o i d   p a g e 1 ( ) { 
 
 s y s t e m ( " c l s " ) ; 
 
 c o u t < < " \ t \ t \ t   . : :   R e a l   E s t a t e   A g e n c y   M a n a g e m e n t   : : . " < < " \ n \ n   1 - A D D " < < " \ n \ n   2 - E D I T " < < " \ n \ n   3 - D E L E T E " < < " \ n \ n   4 - S E A R C H " < < " \ n \ n   5 - E X I T \ n \ n " ; 
 
 c o u t < < " \ n c h o i c e   b y   n u m b e r : " ; 
 
 } 
 
 / / *'(9  1''A  5A-G  -0A'6'AH1'4
 
 v o i d   p a g e 2 ( ) { 
 
 s y s t e m ( " c l s " ) ; 
 
 c o u t < < " \ t \ t \ t   . : :   R e a l   E s t a t e   A g e n c y   M a n a g e m e n t   : : . " < < " \ n \ n   1 - B O N D " < < " \ n \ n   2 - R E N T " < < " \ n \ n   3 - S A L E " < < " \ n \ n   4 - E X I T \ n \ n " ; 
 
 c o u t < < " \ n c h o i c e   b y   n u m b e r : " ; 
 
 } 
 
 / / *'(9  1'A  31
 
 v o i d   p a g e 3 ( ) { 
 
 s y s t e m ( " c l s " ) ; 
 
 c o u t < < " \ t \ t \ t   . : :   S e a r c h   : : . " < < " \ n \ n   1 - B O N D " < < " \ n \ n   2 - R E N T " < < " \ n \ n   3 - B U Y " < < " \ n \ n   4 - E X I T \ n \ n " ; 
 
 c o u t < < " \ n c h o i c e   b y   n u m b e r : " ; 
 
 } 
 
 / / a d d   b o l n d 
 
 
 
 / / *'(9  H1'4  1GF
 
 v o i d   e d i t _ b ( ) { 
 
 s y s t e m ( " c l s " ) ; 
 
 f l a g = 0 ; 
 
 c o u t < < " \ n e n t e r   n a m e : " ; 
 
 c i n > > e b n a m e ; 
 
 f o r   ( i n t   i = 1 ; i < = a b ; i + + ) { 
 
 i f   ( ! s t r c m p ( b [ i ] . b n a m e , e b n a m e ) ) { 
 
 c o u t < < " \ n f o u n d . . . \ n   " < < b [ i ] . b n u m < < " \ t " < < b [ i ] . b n a m e < < " \ t " < < b [ i ] . b a d d r e s s ; 
 
 c o u t < < " \ n y o u   c a n   e d i t   i t e m s   , n o w . . . " < < e n d l < < " e n t e r   n e w   n a m e : " ; 
 
 c i n > > e b n a m e ; 
 
 c o u t < < e n d l < < " e n t e r   n e w   a d d r e s s : " ; 
 
 c i n > > e b a d d r e s s ; 
 
 s t r c p y ( b [ i ] . b n a m e , e b n a m e ) ; 
 
 s t r c p y ( b [ i ] . b a d d r e s s , e b a d d r e s s ) ; 
 
 c o u t < < " \ n n e w   n a m e   a n d   a d d r e s s : " < < b [ i ] . b n u m < < " \ t " < < b [ i ] . b n a m e < < " \ t " < < b [ i ] . b a d d r e s s ; 
 
 f l a g = 1 ; 
 
 
 
 b r e a k ; 
 
 } 
 
 
 
 } 
 
 i f   ( f l a g ! = 1 ) 
 
 c o u t < < " t h e   n a m e   n o t   e x i s t " ; 
 
 
 
 } 
 
 / / *'(9  H1'4  ','1G
 
 v o i d   e d i t _ r ( ) { 
 
 s y s t e m ( " c l s " ) ; 
 
 f l a g = 0 ; 
 
 c o u t < < " \ n e n t e r   n a m e : " ; 
 
 c i n > > e b n a m e ; 
 
 f o r   ( i n t   i = 1 ; i < = a r ; i + + ) { 
 
 i f   ( ! s t r c m p ( r [ i ] . r n a m e , e r n a m e ) ) { 
 
 c o u t < < " \ n f o u n d . . . \ n " < < r [ i ] . r n u m < < " \ t " < < r [ i ] . r n a m e < < " \ t " < < r [ i ] . r a d d r e s s ; 
 
 c o u t < < " \ n y o u   c a n   e d i t   i t e m s   , n o w . . . " < < e n d l < < " e n t e r   n e w   n a m e : " ; 
 
 c i n > > e r n a m e ; 
 
 c o u t < < e n d l < < " e n t e r   n e w   a d d r e s s : " ; 
 
 c i n > > e r a d d r e s s ; 
 
 s t r c p y ( r [ i ] . r n a m e , e r n a m e ) ; 
 
 s t r c p y ( r [ i ] . r a d d r e s s , e r a d d r e s s ) ; 
 
 c o u t < < " \ n n e w   n a m e   a n d   a d d r e s s : " < < r [ i ] . r n u m < < " \ t " < < r [ i ] . r n a m e < < " \ t " < < r [ i ] . r a d d r e s s ; 
 
 f l a g = 1 ; 
 
 
 
 b r e a k ; 
 
 } 
 
 
 
 } 
 
 i f   ( f l a g ! = 1 ) 
 
 c o u t < < " t h e   n a m e   n o t   e x i s t " ; 
 
 
 
 } 
 
 / / *'(9  H1'4  A1H4
 
 v o i d   e d i t _ s ( ) { 
 
 s y s t e m ( " c l s " ) ; 
 
 f l a g = 0 ; 
 
 c o u t < < " \ n e n t e r   n a m e : " ; 
 
 c i n > > e s n a m e ; 
 
 f o r   ( i n t   i = 1 ; i < = a s ; i + + ) { 
 
 i f   ( ! s t r c m p ( s [ i ] . s n a m e , e s n a m e ) ) { 
 
 c o u t < < " \ n f o u n d . . . \ n   " < < s [ i ] . s n u m < < " \ t " < < s [ i ] . s n a m e < < " \ t " < < s [ i ] . s a d d r e s s ; 
 
 c o u t < < " \ n y o u   c a n   e d i t   i t e m s   , n o w . . . " < < e n d l < < " e n t e r   n e w   n a m e : " ; 
 
 c i n > > e s n a m e ; 
 
 c o u t < < e n d l < < " e n t e r   n e w   a d d r e s s : " ; 
 
 c i n > > e s a d d r e s s ; 
 
 s t r c p y ( s [ i ] . s n a m e , e s n a m e ) ; 
 
 s t r c p y ( s [ i ] . s a d d r e s s , e s a d d r e s s ) ; 
 
 c o u t < < " \ n n e w   n a m e   a n d   a d d r e s s : " < < s [ i ] . s n u m < < " \ t " < < s [ i ] . s n a m e < < " \ t " < < s [ i ] . s a d d r e s s ; 
 
 f l a g = 1 ; 
 
 
 
 b r e a k ; 
 
 } 
 
 
 
 } 
 
 i f   ( f l a g ! = 1 ) 
 
 c o u t < < " t h e   n a m e   n o t   e x i s t " ; 
 
 
 
 } 
 
 / / *'(9  -0A  1GF
 
 v o i d   d e l _ b ( ) { 
 
 s y s t e m ( " c l s " ) ; 
 
 f l a g = 0 ; 
 
 c o u t < < " \ n e n t e r   t h e   n a m e   o f   r e c o r d   t h a t   y o u   w a n t   b e   d e l e t e d : " ; 
 
 c i n > > e b n a m e ; 
 
 f o r   ( i n t   i = 1 ; i < = a b ; i + + ) { 
 
 i f   ( ! s t r c m p ( b [ i ] . b n a m e , e b n a m e ) ) { 
 
 p o s = i ; 
 
 f l a g = 1 ; 
 
 c o u t < < " \ n f o u n d   " < < b [ i ] . b n u m < < e n d l < < b [ i ] . b n a m e < < e n d l < < b [ i ] . b a d d r e s s ; 
 
 b r e a k ; 
 
 } 
 
 } 
 
 i f   ( f l a g = 1 ) { 
 
 c o u t < < " \ n i f   y o u   s u r e   a b o u t   d e l e t e   i n f o   p r e s s   e n t e r   o r   i f   n o t   p r e s s   1 . . . " < < e n d l ; 
 
 i f   ( g e t c h ( ) ! = 4 9 ) { 
 
 f o r   ( i n t   j = p o s ; j < = ( a b - 1 ) ; j + + ) { 
 
 b [ j ] . b n u m = b [ j + 1 ] . b n u m ; 
 
 s t r c p y ( b [ j ] . b n a m e , b [ j + 1 ] . b n a m e ) ; 
 
 s t r c p y ( b [ j ] . b a d d r e s s , b [ j + 1 ] . b a d d r e s s ) ; 
 
 
 
 } 
 
 b [ a b ] . b n u m = 0 ; 
 
 s t r c p y ( b [ a b ] . b n a m e , " " ) ; 
 
 s t r c p y ( b [ a b ] . b a d d r e s s , " " ) ; 
 
 a b - - ; 
 
 i b - - ; 
 
 
 
 } 
 
 } 
 
 e l s e   { 
 
 c o u t < < " t h e   n a m e   n o t   e x i s t . . . . " ; 
 
 } 
 
 } 
 
 / / *'(9  -0A  ','1G
 
 v o i d   d e l _ r ( ) { 
 
 s y s t e m ( " c l s " ) ; 
 
 f l a g = 0 ; 
 
 c o u t < < " \ e n t e r   t h e   n a m e   o f   r e c o r d   t h a t   y o u   w a n t   b e   d e l e t e d : " ; 
 
 c i n > > e r n a m e ; 
 
 f o r   ( i n t   i = 1 ; i < = a r ; i + + ) { 
 
 i f   ( ! s t r c m p ( r [ i ] . r n a m e , e r n a m e ) ) { 
 
 p o s = i ; 
 
 f l a g = 1 ; 
 
 c o u t < < " \ n f o u n d . . . \ n   " < < r [ i ] . r n u m < < " \ t " < < r [ i ] . r n a m e < < e n d l < < " \ t " < < r [ i ] . r a d d r e s s ; 
 
 b r e a k ; 
 
 } 
 
 } 
 
 i f   ( f l a g = 1 ) { 
 
 c o u t < < " \ n i f   y o u   s u r e   a b o u t   d e l e t e   i n f o   p r e s s   e n t e r   o r   i f   n o t   p r e s s   1 . . . " < < e n d l ; 
 
 i f   ( g e t c h ( ) ! = 4 9 ) { 
 
 f o r   ( i n t   j = p o s ; j < = ( a r - 1 ) ; j + + ) { 
 
 r [ j ] . r n u m = r [ j + 1 ] . r n u m ; 
 
 s t r c p y ( r [ j ] . r n a m e , r [ j + 1 ] . r n a m e ) ; 
 
 s t r c p y ( r [ j ] . r a d d r e s s , r [ j + 1 ] . r a d d r e s s ) ; 
 
 
 
 } 
 
 r [ a r ] . r n u m = 0 ; 
 
 s t r c p y ( r [ a r ] . r n a m e , " " ) ; 
 
 s t r c p y ( r [ a r ] . r a d d r e s s , " " ) ; 
 
 a r - - ; 
 
 i r - - ; 
 
 
 
 } 
 
 } 
 
 e l s e   { 
 
 c o u t < < " t h e   n a m e   n o t   e x i s t . . . . " ; 
 
 } 
 
 } 
 
 / / *'(9  -0A  A1H4  
 
 v o i d   d e l _ s ( ) { 
 
 s y s t e m ( " c l s " ) ; 
 
 f l a g = 0 ; 
 
 c o u t < < " \ n e n t e r   t h e   n a m e : " ; 
 
 c i n > > e s n a m e ; 
 
 f o r   ( i n t   i = 1 ; i < = a s ; i + + ) { 
 
 i f   ( ! s t r c m p ( s [ i ] . s n a m e , e s n a m e ) ) { 
 
 p o s = i ; 
 
 f l a g = 1 ; 
 
 c o u t < < " \ n f o u n d . . . \ n   " < < s [ i ] . s n u m < < " \ t " < < s [ i ] . s n a m e < < " \ t " < < s [ i ] . s a d d r e s s ; 
 
 b r e a k ; 
 
 } 
 
 } 
 
 i f   ( f l a g = 1 ) { 
 
 c o u t < < " \ n i f   y o u   s u r e   a b o u t   d e l e t e   i n f o   p r e s s   e n t e r   o r   i f   n o t   p r e s s   1 . . . " < < e n d l ; 
 
 i f   ( g e t c h ( ) ! = 4 9 ) { 
 
 f o r   ( i n t   j = p o s ; j < = ( a s - 1 ) ; j + + ) { 
 
 s [ j ] . s n u m = s [ j + 1 ] . s n u m ; 
 
 s t r c p y ( s [ j ] . s n a m e , s [ j + 1 ] . s n a m e ) ; 
 
 s t r c p y ( s [ j ] . s a d d r e s s , s [ j + 1 ] . s a d d r e s s ) ; 
 
 
 
 } 
 
 s [ a s ] . s n u m = 0 ; 
 
 s t r c p y ( s [ a s ] . s n a m e , " " ) ; 
 
 s t r c p y ( s [ a b ] . s a d d r e s s , " " ) ; 
 
 a s - - ; 
 
 i s - - ; 
 
 
 
 } 
 
 } 
 
 e l s e   { 
 
 c o u t < < " t h e   n a m e   n o t   e x i s t . . . . " ; 
 
 } 
 
 } 
 
 / / *'(9  ,3*,H  1GF
 
 v o i d   s e r c h _ b ( ) { 
 
 s y s t e m ( " c l s " ) ; 
 
 f l a g = 0 ; 
 
 c o u t < < " \ n s e a r c h   b y   n a m e : " ; 
 
 c i n > > e b n a m e ; 
 
 f o r   ( i n t   i = 1 ; i < = a b ; i + + ) { 
 
 i f   ( ! s t r c m p ( b [ i ] . b n a m e , e b n a m e ) ) { 
 
 c o u t < < " \ n f o u n d . . .   \ n " < < b [ i ] . b n u m < < " \ t " < < b [ i ] . b n a m e < < " \ t " < < b [ i ] . b a d d r e s s ; 
 
 f l a g = 1 ; 
 
 b r e a k ; 
 
 } 
 
 
 
 } 
 
 i f   ( f l a g ! = 1 ) 
 
 c o u t < < " t h e   n a m e   n o t   e x i s t " ; 
 
 
 
 } 
 
 / / *'(9  ,3*,H  ','1G
 
 v o i d   s e r c h _ r ( ) { 
 
 s y s t e m ( " c l s " ) ; 
 
 f l a g = 0 ; 
 
 c o u t < < " \ n s e a r c h   b y   n a m e : " ; 
 
 c i n > > e r n a m e ; 
 
 f o r   ( i n t   i = 1 ; i < = a r ; i + + ) { 
 
 i f   ( ! s t r c m p ( r [ i ] . r n a m e , e r n a m e ) ) { 
 
 c o u t < < " \ n f o u n d . . .   \ n " < < r [ i ] . r n u m < < " \ t " < < r [ i ] . r n a m e < < " \ t " < < r [ i ] . r a d d r e s s ; 
 
 f l a g = 1 ; 
 
 b r e a k ; 
 
 } 
 
 
 
 } 
 
 i f   ( f l a g ! = 1 ) 
 
 c o u t < < " t h e   n a m e   n o t   e x i s t " ; 
 
 
 
 } 
 
 / / *'(9  ,3*,H  .1/
 
 v o i d   s e r c h _ s ( ) { 
 
 s y s t e m ( " c l s " ) ; 
 
 f l a g = 0 ; 
 
 c o u t < < " \ n s e a r c h   b y   n a m e : " ; 
 
 c i n > > e s n a m e ; 
 
 f o r   ( i n t   i = 1 ; i < = a s ; i + + ) { 
 
 i f   ( ! s t r c m p ( s [ i ] . s n a m e , e s n a m e ) ) { 
 
 c o u t < < " \ n f o u n d . . .   \ n " < < s [ i ] . s n u m < < " \ t " < < s [ i ] . s n a m e < < " \ t " < < s [ i ] . s a d d r e s s ; 
 
 f l a g = 1 ; 
 
 b r e a k ; 
 
 } 
 
 
 
 } 
 
 i f   ( f l a g ! = 1 ) 
 
 c o u t < < " t h e   n a m e   n o t   e x i s t " ; 
 
 
 
 } 
 
 / / 
 
 i n t   _ t m a i n ( i n t   a r g c ,   _ T C H A R *   a r g v [ ] ) { 
 
 
 
 i n t   c h o = 0 , a d d c h o , e d i t c h o , d e l c h o , s e r c h o , f l a g , p o s ; 
 
 
 
 p 1 : p a g e 1 ( ) ; 
 
 
 
 c i n > > c h o ; 
 
 s w i t c h   ( c h o ) 
 
 { 
 
 c a s e   1 : s y s t e m ( " c l s " ) ; 
 
 p 2 : p a g e 2 ( ) ; 
 
 c i n > > a d d c h o ; 
 
 s w i t c h   ( a d d c h o ) 
 
 { 
 
 c a s e   1 : s y s t e m ( " c l s " ) ; 
 
 c o u t < < " \ t \ t Y O U   H A V E   C H O S E N   T O   A D D   B O N D   D E T A I L S " < < e n d l ; 
 
 c o u t < < " \ t \ t ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ " < < e n d l ; 
 
 c o u t < < " h o w   m a n y   i t e m   y o u   w a n t   t o   a d d ( y o u   c a n   a d d   1 0 0   r e c o r d ) : " ; 
 
 c i n > > n ; 
 
 i f   ( ( a b + n ) > 1 0 0 | | ( a b + n ) < 1 ) { 
 
 c o u t < < " \ n ! ! ! ! ! ! ! !   y o u r   n u m b e r   o u t   o f   r a n g e   o r     m a j o r   o f   e m p t y   r e c o r d s   n u m b e r ! ! ! ! ! ! ! " ; 
 
 g e t c h ( ) ; 
 
 g o t o   p 2 ; 
 
 } 
 
 a b = a b + n ; 
 
 c o u t < < e n d l ; 
 
 f o r ( i n t   i = i b ; i b < = a b ; i b + + ) 
 
 { 
 
 b [ i b ] . a d d _ b ( ) ; 
 
 
 
 } 
 
 i b = a b + 1 ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 g o t o   p 2 ; 
 
 b r e a k ; 
 
 
 
 c a s e   2 : s y s t e m ( " c l s " ) ; 
 
 c o u t < < " \ t \ t Y O U   H A V E   C H O S E N   T O   A D D   R e n t   D E T A I L S " < < e n d l ; 
 
 c o u t < < " \ t \ t ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ " < < e n d l ; 
 
 c o u t < < " h o w   m a n y   i t e m   y o u   w a n t   t o   a d d ( y o u   c a n   a d d   1 0 0   r e c o r d ) : " ; 
 
 c i n > > n ; 
 
 i f   ( ( a r + n ) > 1 0 0 | | ( a r + n ) < 1 ) { 
 
 c o u t < < " \ n ! ! ! ! ! ! ! !   y o u r   n u m b e r   o u t   o f   r a n g e   o r     m a j o r   o f   e m p t y   r e c o r d s   n u m b e r ! ! ! ! ! ! ! " ;   
 
 g e t c h ( ) ; 
 
 g o t o   p 2 ; 
 
 } 
 
 a r = a r + n ; 
 
 c o u t < < e n d l ; 
 
 f o r ( i r ; i r < = a r ; i r + + ) 
 
 { 
 
 r [ i r ] . a d d _ r ( ) ; 
 
 
 
 } 
 
 i r = a r + 1 ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 g o t o   p 2 ; 
 
 b r e a k ; 
 
 
 
 c a s e   3 : s y s t e m ( " c l s " ) ; 
 
 c o u t < < " \ t \ t Y O U   H A V E   C H O S E N   T O   A D D   S a l e   D E T A I L S " < < e n d l ; 
 
 c o u t < < " \ t \ t ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ " < < e n d l ; 
 
 c o u t < < " h o w   m a n y   i t e m   y o u   w a n t   t o   a d d ( y o u   c a n   a d d   1 0 0   r e c o r d ) : " ; 
 
 c i n > > n ; 
 
 i f   ( ( a s + n ) > 1 0 0 | | ( a s + n ) < 1 ) { 
 
 c o u t < < " \ n ! ! ! ! ! ! ! !   y o u r   n u m b e r   o u t   o f   r a n g e   o r     m a j o r   o f   e m p t y   r e c o r d s   n u m b e r ! ! ! ! ! ! ! " ;   
 
 g e t c h ( ) ; 
 
 g o t o   p 2 ; 
 
 } 
 
 a s = a s + n ; 
 
 c o u t < < e n d l ; 
 
 f o r ( i s ; i s < = a s ; i s + + ) 
 
 { 
 
 s [ i s ] . a d d _ s ( ) ; 
 
 
 
 } 
 
 i s = a s + 1 ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 g o t o   p 2 ; 
 
 b r e a k ; 
 
 
 
 c a s e   4 : g o t o   p 1 ; 
 
 } 
 
 c a s e   2 : 
 
 p 2 2 : p a g e 2 ( ) ; 
 
 c i n > > e d i t c h o ; 
 
 s w i t c h   ( e d i t c h o ) { 
 
 
 
 c a s e   1 : 
 
 e d i t _ b ( ) ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 g o t o   p 2 2 ; 
 
 b r e a k ; 
 
 
 
 c a s e   2 : 
 
 e d i t _ r ( ) ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 g o t o   p 2 2 ; 
 
 b r e a k ; 
 
 
 
 c a s e   3 : 
 
 e d i t _ s ( ) ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 g o t o   p 2 2 ; 
 
 b r e a k ; 
 
 
 
 c a s e   4 : 
 
 g o t o   p 1 ; 
 
 } 
 
 c a s e   3 : 
 
 p 2 3 : p a g e 2 ( ) ; 
 
 c i n > > d e l c h o ; 
 
 s w i t c h   ( d e l c h o ) { 
 
 
 
 c a s e   1 : 
 
 d e l _ b ( ) ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 
 
 f o r   ( i n t   i = 1 ; i < = a b ; i + + ) { 
 
 b [ i ] . d i s p _ b ( ) ; 
 
 } 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 g o t o   p 2 3 ; 
 
 
 
 c a s e   2 : d e l _ r ( ) ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 
 
 f o r   ( i n t   i = 1 ; i < = a r ; i + + ) { 
 
 r [ i ] . d i s p _ r ( ) ; 
 
 } 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 g o t o   p 2 3 ; 
 
 
 
 c a s e   3 : d e l _ s ( ) ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 
 
 f o r   ( i n t   i = 1 ; i < = a s ; i + + ) { 
 
 s [ i ] . d i s p _ s ( ) ; 
 
 } 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 g o t o   p 2 3 ; 
 
 
 
 c a s e   4 : g o t o   p 1 ; 
 
 b r e a k ; 
 
 
 
 } 
 
 c a s e   4 : 
 
 p 3 : p a g e 3 ( ) ; 
 
 c i n > > s e r c h o ; 
 
 s w i t c h   ( s e r c h o ) { 
 
 
 
 c a s e   1 : s e r c h _ b ( ) ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 g o t o   p 3 ; 
 
 
 
 c a s e   2 : s e r c h _ r ( ) ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 g o t o   p 3 ; 
 
 
 
 c a s e   3 : s e r c h _ s ( ) ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < e n d l ; 
 
 c o u t < < " \ t \ t < < - - - - - B a z g a s h t   b e   m e n o   a s l i - - - - - " < < e n d l ; 
 
 g e t c h ( ) ; 
 
 g o t o   p 3 ; 
 
 
 
 c a s e   4 : 
 
 g o t o   p 1 ; 
 
 } 
 
 c a s e   5 : b r e a k ; 
 
 
 
 } 
 
 
 
 
 
 
 
 
 
 r e t u r n   0 ; 
 
 
 
 
 
 } 
 
 
 
 
 
 
 
 
 
 