Hi, can you maybe give an example or function prototype how you would like to use it? It should be fairly easy to read that file in and split the columns.
what i mean do you want a separate array for each column or a multidimensional array e.g.
// separate array for each column
c1 = [1,2,3,...]
c2 = [4,5,6,...]
c3 = [7,8,9,...]
// or multidimensional array
a = [
[1,2,3,...]
[4,5,6,...]
[7,8,9,...]
]
or something else?
Also you know there is no way you can return multiple values with one return value, you could use callback function or “wrapper” like a std::tuple but then again you could just use a multidimensional array in the first place :D
↧