|
|
|
|
|
by stackghost
1 day ago
|
|
>How do you make an std::array of a given type? Wrap the existing type in an extra layer of std::array, we all know this huh? where is the extra layer? std::array<int, 5> array_of_ints = { 1, 2, 3, 4, 5 };
>How do you make a C-array of a given type? Oh boy, "prepend the array specifier before the list of existing array specifiers"? int c_style_array[5] = {2, 3, 5, 7, 11};
|
|