22 Reputation Points
Ranked #1K
- Strength to Increase Rep
- +2
- Strength to Decrease Rep
- -0
25% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 3
- Posts with Downvotes
- 1
- Downvoting Members
- 3
0 Endorsements
Ranked #107.40K
Re:
Is it possible to read data from a binary file to a C++ class using [inlineCODE]istream::read[/inlineCODE]? I know it can be done for structures, but I couldnt do it for a class. [Edit] Want code? [CODE]#include <iostream> #include <fstream> class BITMAPFILEHEADER { private: char type[ 2 ]; // Magic identifier … |