Updated basic_hw.cpp with more basics of c++.