I have an EXCEL spread sheet containing 50 columns, and 23 columns are for numerical data, and 27 columns are for texts.
What I want to do is to extract the numerical data from the spreadsheet, use one vector to hold one column of numerical values.
Previously I used Matlab to do the calculation, now I switch to C++.
I know there are some ways to read data from Excel to C++. Since I am programming under Linux, maybe the best way is first convert xls to csv, and then maybe use getline to read one line, and use strtok to extract numerical values......
Is there a better way (I mean, more efficient, and easier) to do this? Anyone has example code? Or, any online resource available?
Thanks a for help.
What I want to do is to extract the numerical data from the spreadsheet, use one vector to hold one column of numerical values.
Previously I used Matlab to do the calculation, now I switch to C++.
I know there are some ways to read data from Excel to C++. Since I am programming under Linux, maybe the best way is first convert xls to csv, and then maybe use getline to read one line, and use strtok to extract numerical values......
Is there a better way (I mean, more efficient, and easier) to do this? Anyone has example code? Or, any online resource available?
Thanks a for help.