Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

ARRAY task, pointer dynamic memory?

$
0
0
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?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>