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
6 Antworten
+ 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/
+ 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~
+ 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.
+ 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. :-)
0
Thank you for the answer but this just works for integers can't use it with strings!?
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?