JavaScript is required to use Bungie.net

Offtopic

Daj się porwać dyskusjom o wszystkim.
4/19/2013 6:23:02 PM
1

C++ seekg()

Hey if you know how to code in c++ I need some help. I am trying to figure out how to use seekg(). I have tried to use it like so: [quote] ifstream inf("Sample.dat"); // If we couldn't open the input file stream for reading if (!inf) { // Print an error and exit cerr << "Uh oh, Sample.dat could not be opened for reading!" << endl; exit(1); } string strData; inf.seekg(5); // move to 5th character // Get the rest of the line and print it getline(inf, strData); cout << strData << endl; [/quote]

Język wpisów:

 

Bądź w porządku dla innych. Poświęć chwilę na przejrzenie naszego Kodeksu Postępowania, zanim zamieścisz swój post. Anuluj Edytuj Stwórz drużynę ogniową Posty

Nie możesz zobaczyć tej zawartości.
;
preload icon
preload icon
preload icon