Update C++Code