JavaScript is required to use Bungie.net

服務提示
《天命2》將於明日暫時離線,以進行定期維修。請選取此處查看最新的《天命》伺服器及更新狀態。

雜七雜八

瀏覽大量隨機討論串。
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]

文章張貼語言:

 

以禮待人。發佈文章前請花點時間查看我們的行為準則 取消 編輯 創立火力戰隊 文章

檢視完整主題
你無權檢閱此內容
;
preload icon
preload icon
preload icon