sample for i/o and c++ auto