I need to do the equivalent of the following C# code in C++
Array.Resize(ref A, A.Length - 1);
How to achieve this in C++?
You cannot do that, see this question's answers. You may use std:vector instead.
std:vector