Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. LiquidEyes

    istream: seekg / tellg, peculiar behaviour

    P.S. On further examination, I think the (length*2) thing was a coincidence. Unless length==0, seekg just seems to seek to an arbitrary position in the stream.
  2. LiquidEyes

    istream: seekg / tellg, peculiar behaviour

    I'm having two istream-related problems. Please can somebody help... [ponder] Problem 1 void loadStuffFromStream (istream& stream) { // goes too far!! stream.seekg( length, ios_base::cur ); } This always skips (length*2) bytes instead of length. Why does it do this? I thought istream was...

Part and Inventory Search

Back
Top