小编Oli*_*_Mo的帖子

C++ Struct Size C++/CLI中不等C++结构大小?

我的问题是指标题中提到的问题.

我在头文件中有一个简单的结构,如下所示:

typedef struct
{
    WORD FileType;          // File ID (0x7000)
    WORD HeaderSize;        // Size of this file header in Bytes
    WORD HeaderVersion;     // yy.y
    ULONG FileSize;         // Size of the whole file in Bytes
    WORD ImageHeaderSize;   // Size of the image header in Bytes
    WORD ULX, ULY, BRX, BRY;// bounding rectangle of the image
    WORD NrOfFrames;        // self explanatory
    WORD Correction;        // 0 = none, 1 = offset, 2 = gain, 4 = bad pixel, (ored)
    double IntegrationTime; // …
Run Code Online (Sandbox Code Playgroud)

c++ struct c++-cli

5
推荐指数
1
解决办法
441
查看次数

标签 统计

c++ ×1

c++-cli ×1

struct ×1