There was a RPG source code written in c++ that had this:
If you guys want I'll add in the whole(still uncomplete) source code, but I figured it wouldn't matter.Code:y -= 1;
But what is a subtraction sign doing next to an equal sign??
There was a RPG source code written in c++ that had this:
If you guys want I'll add in the whole(still uncomplete) source code, but I figured it wouldn't matter.Code:y -= 1;
But what is a subtraction sign doing next to an equal sign??
It means:
Code:y = y - 1;
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Lookup "assignment operator" in your C++ book.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Thanks guys! Much appreciated!