Moving to basic c++