fix code c to C++

Signed-off-by: Xiaofeng QU <xiaofeng.qu.hk@ieee.org>