[Solved] Using iterator to read input [closed]
The code compiles because it is valid code. It just doesn’t do anything meaningful. sin_start is not a function, it is a variable of type istream_iterator<int>, where istream_iterator is a template class defined in the <iterator> header file. It is being passed std::cin as a parameter to its constructor, so it knows which stream to … Read more