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) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -