How to declare an array of strings in C++? - Stack Overflow

How to declare an array of strings in C++? - Stack Overflow

瀏覽:493
日期:2025-06-12
You can use Will Dean's suggestion [#define arraysize(ar) (sizeof(ar) / sizeof(ar[0]))] to replace the magic number 3 here with arraysize(str_array) -- although I remember there being some special case in which that particular version of arraysize might d...看更多