istream, ostream.
istream :
istream& get(char* buffer,int size,char delimiter=\n);
istream . , size , . streambuf. .
istream& read(char* buffer,int size);
, .
istream& getline(char* buffer,int size, char delimiter=\n);
, . . .
istream& get(streambuf& s,char delimiter=\n);
istream streambuf , -, istream. s .
istream get (char& );
istream . 0XFF.
int get();
istream . EOF.
int peek();
istream, istream.
int gcount();
, .
istream& putback()
get streambuf , .
istream& ignore(int count=1,int target=EOF);
istream, :
- count ;
- target;
- .
ostream :
ostream& put(char C);
ostream .
ostream& write(const char* buffer,int size);
ostream . , size . . . ( ) ostream.
ostream& flush();
streambuf.
- .
istream& seekg(long p);
get ( ) .
istream& seekg(long p,seek_dir point);
.
enum seek_dir{beg,curr,end}
get ( ), ( ).
long tellg();
get.
|
|
.
ostream& seekp(long p);
put streambuf streambuf.
ostream& seekp(long p,seek_dir point);
.
long tellp();
put.
istream >>, ostream <<. << >> istream (ostream), , .
<< >> operator<< operator>>. - operator.
: , , (char*). void* ( , char*, void*). >> << .
operator<< operator>> , . , .
cout << a << b << c;
cin >> i >> j >> k;
- .
>> << , , , -. - , .
iostream.h , -:
cin istream, ;
cout ostream, ;
cerr ;
clog .
<< >> cout, cin, cerr, clog .
. ios. protected long x_flags. public .
protected ios:
int x_width .
int x_precision ( ) ;
int x_fill - , .
() :
int width();
int width(int);
int precision();
int precision(int);
char fill();
char fill(char);
ios, . .
|
|
, . , >> <<. , , ( ), .
istream ostream operator.
istream& operator>>(istream&(*_f)(istream&));
ostream& operator<<(ostream&(*_f)(ostream&));
<iomanip.h>, .