        -   
  .  -    
,  char, short, int, long, char* ( ,   ,  
 ),  float, double,  long double  void* (  
-). 
      ,  cin, cout, cerr  clog   .   
        ,  
   -    : 

    cin  v;        //  v   	
    cout  v;      //  v                     

         ,  -  
 ,    : 

    cout  "Balance == $"  balance < " (dollars)\n";	

               
  - (.   ios    
IOSTREAM.H).   - flags(),  setf()  unsetfO  
   . ,   
       hex  cout 
    - setfO  ios: 

    unsigned v = 12345;	
    cout  "Before:  "  v  '\n';	//    ()     
    cout.setf(cout.hex);	//                 
    cout  "After:    "  v  '\n'	//           

         ,   ,   
    . 

      

       IOMANIP.H (    
   IOSTREAM.H)    
 ,       
  . ,     
hex      : 

    unsigned v = 12345; 
    cout  "In hexadecimal v == "  hex  v  '\n'; 
    cout  "In decimal v == "  dec  v  '\n'; 

         dec   cout  
     .    
  .     
       : 

    cout  "Enter value in hex: "; 
    cin  hex  v;	
    cout  "Value in decimal == "  dec  v;	

     . 15.2   -,   
  IOMANIP.H  IOSTREAM.H. 
        . ,  
setbase(int n)        . ( 
n  ,     ,     
  ANSI      
.)	

     15.2.   -	

    	 

    dec	     
    endl	  ;    
    ends	      
    flush	    
    hex	     
    lock(ios &r)	     ir   - 


    386      III.   ANSI C++ 
