C++ Initializing a Global Array
If you actually want an array and not a vector, and you want that array dynamically sized at runtime, you would need to create it on the heap (storing it in a pointer), and free it when you’re done. Coming from Java you need to understand that there’s no garbage collection in C++ – anything … Read more