Here is an example of how you can add a parameter for C++ block.
Remember, whatever you change input, parameter or output, you should re-create the C++ template. So, copy your code, re-create C++ template and paste the code back.
3 Likes