learn stuff about standard I/O in cpp