Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problems with the C++

Featured Replies

I've been writing a program which reads a bunch of text strings in from a file, and selects one to match the user input string. When i directly stored these strings in my program, i got an invalid page fault (that means my program is tryin to access memory not allocated to it). To remedy this problem, i instead used the tellg() function before i read each string and stored the result. ( the tellg() function retrieves the input stream's get pointer) This would allow me to call seekg() later and getline from there so i could read in the value at that location. (when i say getline, I mean the string version, not the member function) Problem is, when i call seekg(), it sets it at a different location! It most certainly does not do what i want it to.

 

 

 

Can anyone enlighten me as to how the seekg() function works so i can get it to read the location i originally stored.

 

 

 

(if you haven't realized yet, this is a programming question.)

This is where they want I should sign?

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.