Edit code C++