Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <iomanip>
- #include <string>
- using namespace std;
- int main()
- {
- ifstream in("input.txt");
- ofstream out("output.txt");
- fstream H("Help.txt");
- string s, p;
- int b, a;
- while (in.peek() != EOF)
- {
- in >> b;
- if (b > 0)
- out << b << " ";
- else
- H << b << " ";
- }
- H.close();
- H.open("Help.txt");
- while (H >> a)
- {
- //H >> a;
- out << a << " ";
- }
- in.close();
- H.close();
- out.close();
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement