.


:




:

































 

 

 

 





- . , . 0. - .

, , . , 4 , . 4, .

, , . , , 20 . , . , .

, () .

( ) , :

- ifstream();

- ofstream();

- fstream().

(), :

- ifstream (const char *name, int mode = ios::in);

- ofstream (const char *name, int mode = ios:out | ios::trunc);

- fstream (const char *name, int mode = ios::in | ios::out);

, . , . , , , , , ios ( 2, 1, 10, 100 ..):

ios::app , ;
ios::ate , ;
ios::in , , ;
ios::out ( );
ios::trunc , ; , ios::ate, ios::app ios::in;
ios::binary - , .

, open, - . open , . , , .

, ( , open), -.

- close (), new. close , . .





:


: 2016-07-29; !; : 679 |


:

:

- , 20 40 . - .
==> ...

1488 - | 1452 -


© 2015-2024 lektsii.org - -

: 0.009 .