Why does short int become 4bytes when stored to file in c++?

后端 未结 0 757
臣服心动
臣服心动 2021-01-30 03:42

I am trying to create a BITMAP image using C++.

Code:

#include 
#include 
using namespace std;

struct BMPHeader{
    short i         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题