C++
tellp()
The tellp() function is used with output streams, and returns the current "put" position of the pointer in the stream.
Syntax: pos_type tellp();
Example:#include
using namespace std;
main()
{
ofstream ofs("files_tellp_seekp.out");
ofs << "hello ";
ofstream::pos_type p = ofs.tellp();
ofs << "files\n";
ofs.seekp(p);
ofs << "world\n";
ofs.close();
}
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 128 / 158765798. Delta: 0.00232 с