update c++ syntax