Hello!
I have a csv file:
1, 2, 3, 4,
5, 6, 7, 8,
with 4 columns and int values on each column.
I read it line by line.
I'd wish now to take the first and the second value from each line, and give those values to a struct, and then return a QStringList of those Structures.
Qt Code:
typedef struct Coordinates{ float latitude; //this will be 1 and 5 float longitude; // this will be 2 and 6 }t_Coordinates;To copy to clipboard, switch view to plain text mode
I dont know how to acces specific values of a line.
I'm sorry if I didn't make this thread properly, I'm very new to this, and I am still learning.


Reply With Quote

Bookmarks