#include #include #include int main() { std::ios::sync_with_stdio(0); std::vector array; int number=0; std::ifstream input_file("/tmp/numbers"); if (!input_file.is_open()) return 1; int i=0; for (; input_file >> number; i++) { array.push_back((i&7)+'0'); } array.push_back('\n'); std::cout << &array[0]; return 0; }