#include #include #include #include using namespace std; int main() { ifstream in ("inpnum.txt"); if (!in) { cerr << "File not found\n"; exit(1); } vector v; int x; while (in >> x) v.push_back(x); sort(v.begin(), v.end()); vector::const_iterator i; for (i = v.begin(); i != v.end(); ++i) cout << *i << " "; return 0; }