C++ Input and Output Test