Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <list>
- using namespace std;
- ifstream in("Input.txt");
- ofstream out("Output.txt");
- int main()
- {
- int x,i;
- cin >> x;
- list <int> get_numb;
- int size = get_numb.size();
- while (in >> i)
- {
- get_numb.push_front(i);
- }
- while (!get_numb.empty())
- {
- if (x != get_numb.front())
- out << get_numb.front() << " ";
- get_numb.pop_front();
- }
- in.close();
- out.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment