Of course. Since you are using cin, you are bound to use some of the functions supplied by std::istream (i.e., the std::cin's type).
Originally Posted by RaisinToe
That said, instead of creating a temporary array, it would be easier to write:
Or more properly, you could #include <limits> and write:
However, better ways include running the program from the command prompt or from an IDE that pauses the program for you.