moving from c to c++