Plc and c++

Greeting,
I watched your video on youtube programming plcnext with c ++.
I’m stuck on variables. As you can see the input is multiplied by two and the output must always be twice as large.
The problem is that I obviously don’t know how to connect variables and every time I put an input number I don’t get anything on the output.
I looked at all the videos, but none of them explained the step well, where the variables are connected and examined online.
Can you please help me how to correctly connect the variables so that when I write down a number at the input it is done code i.e. multiplied.
Thank you

Here are some pictures from the video and my project

Can you please show the C++ code snippets from (a) your C++ program header (hpp) file, and (b) your C++ program implementation (cpp) file, where you define and use the Port variables?

the code is the same as in the video

I just implemented that same code, and it worked:

I didn’t connect the C++ port variables, I just set the IN port to 123, and the OUT port was automatically set to 246.
I notice in your screen shot that your cpp file has not been saved. In Eclipse, files are not saved automatically when a project is built. If there were significant unsaved changes to that cpp file before the build, then perhaps the logic shown in the screen shot has not been built into the program.
Please try saving all the source files in eclipse, then building the project again, and then replacing the library file in the PLCnext Engineer project.