706_____________________________________________ 12

 :

-1.1

-1.1

- l-l

   ,     resetiosflags
  ,         right,
left  internal  .

,   showbase:

outfile  63  oct  " "  63  hex  " "  63
 setiosflags(ios::showbase)  dec  endl
 63  oct  " "  63  hex  " "  63  endl;

 :

63 77 3f
63 077 Ox3f

 ,       ;

 setiosflags,   dec, oct, hex.
,   scientific  fixed:

outfile  " :"  endl

 0.0123  ' '  1.236  endl  endl

 " scientific:"  setiosflags(ios::scientific)

 endl

 0.0123  ' '  1.23e6  endl  endl

 " fixed:"  resetiosflags(ios::scientific)

 setiosflags(ios::fixed)  endl

 0.0123  ' '  1.23e6  endl;

 :

 :

0.0123 1.23+06

 scientific:

1.230000-02 1.230000+06

 fixed:

0.012300 1230000.000000

 ,        
     , ,  .
,   showpos  showpoint:

outfile  setprecision (4)  setw(3)  60.  endl

 setiosflags(ios::showpos I ios::showpoint)  60.  endl

 :

60
+60.00

     setiosflags    .

12.10 

12.10.1  

    ,    -
    ,    - . -
   ,   ,  (