iostream - How do tellg() & tellp() work in C++? -


Why tellg () and tellp () always come together Are you And how can we differentiate them from each other?

They do not.

One indicates that the "received" cursor is in an input stream; The second indicates that the "put" cursor is in an output stream.

They are similar but are not linked internally, so the basis of your question is basically defective.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -