Posts
 
Reputation
Joined
Last Seen
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
4 Commented Posts
0 Endorsements
Ranked #107.40K
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for WolfPack

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 …

Member Avatar for Ancient Dragon
0
2K