array problem, pointer dynamic memory???

am using c++.
i have this code which prints out a result like this on the screen ;

first numbers are ; 23, 25, 56, 75, 65,

second numbers are; 45, 87, 90, 1, 76,

third numbers are; 23, 34, 65, 87, 2,

is there a way i can make the program read all this numbers into a one single array at runtime? i wish to have an array of lets say

int possible []= {23, 25, 56, 75, 65, 45, 87, 90, 1, 76, 23, 34, 65, 87, 2};

using cin and some magic call or code hahaha may be pointer and dynamic memory? i cant figure it out, or am i asking too much? is manually creating the array the only solution?
Sure, that's what std::vector is for.
Topic archived. No new replies allowed.