1. Either use std::cout and std::cin or type usingnamespace std just under #include .
2. Change the book / tutorial you use to something modern. The presented code uses obsolete standards, so similar mistakes will pile up. I recommend http://www.learncpp.com/