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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -