Код: Выделить всё
int *a = new int[16];
Код: Выделить всё
struct student {
string name;
int age;
};
int num_students = get_number_of_students();
struct student *students = new student[num_students];
Подробнее здесь: https://stackoverflow.com/questions/738 ... -the-addre
Мобильная версия