restart acceleration c++