https://www.cppbetterexplained.com/posts/cpp-read-multiple-inputs/