C++ dynamic array size definition
c++
Solution
You should use `std::vector` unless you have very specific reason to use arrays. Normally, in the similar context where you were using arrays in other languages in C++ the default choice should be `std::vector`.
Problem
I am used to java and php and now I need to write some c++ code. I got difficulties to create a BYTE-array with dynamic size. How to achieve this? ``` int byteSize = shm.getMemorySize(); BYTE byte[44]; // replace 44 by byteSize ```