Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: #include <fstream> #include <iostream> #include <vector> #include <string> #include <sstream> using namespace std; int main() { ifstream input_from_file("test.csv"); string line; while (getline(input_from_file, line)) { line += ","; stringstream ss(line); string word; vector<string> words; while (getline(ss, word, ',')) words.push_back(word); cout << words.size() << endl; } return 0; } The line `line … |
The End.