Help write very simple c++ code

 

v20240901