I've been using this command, but I'm not exactly sure what it does.
What I assumed it to be is, say:
where x is an integer. Is this correct?Code:x = x+1;
Printable View
I've been using this command, but I'm not exactly sure what it does.
What I assumed it to be is, say:
where x is an integer. Is this correct?Code:x = x+1;
Yes. ++ means add one. That is where C++ got its name. The maker of it thought he just added one thing to C, so he called it C++. You can also use -- to subtract one (I think).
Ah thanks. And yes, you can use -- for subtract one.