Code snippet:
static struct { static const unsigned char myConstArray[] = { 50, 51, 52, 52, 53, 54, 55, 55, 56, 57, 58, 58, 59, 60, }; //more.... }_SomeValues;
How could this work? (complains that after = a; absent)
Change to:
static struct { const unsigned char myConstArray[14]; } _SomeValues = { { 50, 51, 52, 52, 53, 54, 55, 55, 56, 57, 58, 58, 59, 60, } };
you don't have static variables in struct
The links below may also help you.
Static Const Initialized Structural Array in C ++ Class
C ++ Initializing a structure with an array as an element
Source: https://habr.com/ru/post/1441578/More articles:Changing the display order of test buttons in Magento - magentoDetermine if Two Points Are - mathAttach a table with one table if condition1 is true and with another table if condition1 is false? - sqlPassing parameters of various types to a function defined on an interface in C # - c #Can a generic class cause identical signature overloads? - c #How to configure Java 7 as java by default on the latest version of OS X 10.8.2? - javaStatic Const Initialized structural array in C ++ class - c ++rails ruby โโiterating through partial in a directory - ruby โโ| fooobar.comOnepageController does not overload / rewrite my user controller - magentoHow are Rhino native functions created? - javascriptAll Articles