【发布时间】:2011-07-17 07:15:58
【问题描述】:
我正在尝试做这样的事情:
struct SomeStruct {
const char *bytes;
const char *desc;
};
SomeStruct example = { { 0x10, 0x11, 0x12, 0x13 }, "10-13" };
为什么这不起作用?
【问题讨论】:
-
您遇到什么错误?如果您发布关于某些东西不起作用的问题,请始终发布您遇到的错误或不正确的行为。
标签: c++ arrays struct inline declare