12 ms·
Yes, C++ has no shortage of ways to initialize variables. Any of these should work TYPENAME v {1, 2, 3}; TYPENAME v = {1, 2, 3}; auto v = TYPENAME
by TheCoelacanth 12y ago
Yes, C++ has no shortage of ways to initialize variables. Any of these should work
TYPENAME v {1, 2, 3};
TYPENAME v = {1, 2, 3};
auto v = TYPENAME {1, 2, 3};