Chaning output to cout instead of printf