Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <fstream>
- using namespace std;
- int main()
- {
- ifstream in("input.txt");
- ofstream out("output.txt");
- string s; unsigned min = 10;int num = 0;
- while (in.peek() != EOF)
- {
- getline(in, s);
- for (int i = 0; i < s.length();i++)
- {
- if (s.length() < min)
- num++;
- }
- out << num << endl;
- }
- in.close();
- out.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment