     . 15.2 

    	 

    oct	     
    resetiosflagsGong f)	  ,   / 
    setbase(int n)	     n (0, 8, 10 	16) 
    setiosflagsdong f)	  ,   f 
    setfilKint c)	       
    setprecisionGnt n)	       
                                       
    setw(int n)	    
    unlockGos &ir)	     ir  
                                    -
    ws	   

    -      ostream&, 
 ,    ostream.      
,    IOSTREAM.H     
&ostream. ,         
 : 

    ostream& bell(ostream& os) { 
    return os  "\a";	// '\a' -    
    } 

     bell()   &ostream,      os  
ostream&.          : 

    cout  bell  "Ding!"; 

       -     
. ,      v  
         : 

    cout.width(8); 
    cout  v  '\n';       //  v    
    cout  v  '\n';       //  v     

     width ,       
 .  -   fill(charc), 
        
 ,  precision(nt n),      
   n. 

         

            ,  
int, long, double, char*  ..        ,   
 ,     ,   
  . 
      15.8      TPoint   
    ,  , ,  
 .       
,       TPoint   , 
    20  23. 

     15.8.  POINTOUT.CPP (   ) 

    1:           #include <iostream.h> 
    2:
    3:	class TPoint { 
    A:	private: 
    5:	   int x,  y; 
    6:	public: 
    7:	  TPoint() { x =  = 0;   } 
    8:	  TPoint( int xx, int yy ) { x = xx;  = yy; }


    15.   C++     387 
