Update cpp
Signed-off-by: matthewgao <matthewgao@gmail.com>