Domanda di colloquio di General Dynamics

Suppose we want to create a C++ class which will allow an array to be dynamically allocated according to user input like a vector can be. How could we do this?

Risposta di colloquio

Anonimo

11 gen 2021

I still see no way of doing this, but he suggested using the new and delete keywords to create a new array of user specified size.