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