Incrementing variables

Even after looking at the code and going through the video, I still I feel I don’t understand what parameters are. I understand the variable incrementing, but how it got applied through the main and then pushed into the print introduction still confuses me. Maybe I am overthinking it?

‘++MyVariable’ adds one first to ‘MyVariable’ then prints out ‘MyVariable’. ‘MyVariable++’ prints out the current ‘MyVariable’ then increments ‘MyVariable++’ by one.

[quote=“GavinMilroy, post:1, topic:104624, full:true”]
In lesson 13 for Triple X, we cover incrementing variables like: ++MyVariable;

I didn’t touch upon this in the lesson, but you can also increment like: MyVariable++;

What can you find out about the difference between these two? Here’s a good source of info for you: https://en.cppreference.com/w/cpp/language/operator_incdec

Post below!
[/quote]

i followed the tutorial but it didnt work

Privacy & Terms