c++ - Assign values of each line of my file to an array -


this question has answer here:

i have file has several lines , each lines have unknown integer values separated space characters. want assign each line's integers different lines of array. tried find example code there no.

example input file is:

1 23 4 44 12  8 10 2  66 3 22 5 

maybe mean push values array of arrays.

if know number/size of vales per line, per file create statically (or allocate if not).

then read values , push them array of array.

just here: how work dynamic multi-dimensional arrays in c?


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -