Convert existing Python code to C++
Convert existing Python code to C++