Posts
 
Reputation
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
~6K People Reached
Favorite Forums
Favorite Tags
c++ x 1

1 Posted Topic

Member Avatar for casey.li.146

#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 …

Member Avatar for ming_1
0
6K

The End.