0

Hey can anyone tell me how to read only 4 letter word in a text file?

17th Nov 2016, 11:00 PM
Akash Gupta
Akash Gupta - avatar
2 Respostas
+ 2
ifstream file("text.txt"); vector<string> arr; string temp; while(temp << temp) { if(temp.size() == 4) arr.push_back(temp); }
30th Nov 2016, 9:09 AM
mekacher anis
mekacher anis - avatar
0
thanks ☺☺
30th Nov 2016, 5:17 PM
Akash Gupta
Akash Gupta - avatar