0

.CSV file to Cpp Vector

Hey Guys, is there a way to read a .csv file from excel to a cpp vector? My file looks like ID;Name:2.Name 1;Name1;2.Name1 2;Name2;2.Name2

9th May 2018, 6:14 AM
Talha Hameed
Talha Hameed - avatar
6 Réponses
+ 3
" How can I read values from a .csv file and store them in a vector?" https://stackoverflow.com/questions/17681385/c-how-can-i-read-values-from-a-csv-file-and-store-them-in-a-vector "How to read data from a csv file in C++ ? " http://thispointer.com/how-to-read-data-from-a-csv-file-in-c/
9th May 2018, 6:24 AM
Rahul George
Rahul George - avatar
+ 3
Talha Hameed - Sorry to disappoint, but I've got limited knowledge upon the topic that you've described. Maybe you could ask for Assistance from among the following users: @🌛DT🌜 @kremik @Ketan Lalcheta @Nevfy @~swim~
14th May 2018, 3:08 PM
Rahul George
Rahul George - avatar
+ 3
From a quick view it seems that second example works fine with strings. Isn't it? @Talha Hameed Did you try it? P.S. @Rahul George Please, use '@' before my nickname. Otherwise I have a push notification on my device, but it is not in a list of news, when I open the app, so I can lose this call and forget to answer, if I don't do it immediately.
14th May 2018, 3:16 PM
Nevfy
+ 1
@Talha Hameed I don't understand in fact your worries about using classes. What is it about? I also make a call for @~ swim ~ in this topic as for the Guru of C++ and STL library to pushing you toward right direction. :-)
15th May 2018, 3:07 PM
Nevfy
0
Thank you for the answer but this just works for integers can't use it with strings!?
14th May 2018, 12:49 PM
Talha Hameed
Talha Hameed - avatar
0
doesn't work for me, is there a way to program this without classes and only with the iostream fstream vector and string library?
15th May 2018, 7:43 AM
Talha Hameed
Talha Hameed - avatar