Error line:
numbers = cout << std::setw(10) << n;
I'm not quite sure what you are trying to do here, it looks like you just want to print it, and in this case numbers =it is not required.
. : while (!inputFile.eof()) ++ , . . ( ).
, std::sort
#include <iterator>
#include <algorithm>
#include <vector>
#include <fstream>
#include <iostream>
int main() {
std::ifstream in("test.txt");
std::vector<int> numbers;
std::copy(std::istream_iterator<int>(in), std::istream_iterator<int>(),
std::back_inserter(numbers));
std::sort(numbers.begin(), numbers.end());
std::copy(numbers.begin(), numbers.end(),
std::ostream_iterator<int>(std::cout, "\t"));
std::cout << std::endl;
}
std::vector " ?". ( ).