Learning some c++