change snippet for c++