-
C++ compile issue
I get a expected `;' before "MOD" compile error. Why is that and how do I make it work?
-JF
-
-
Figured it out. If you put in MOD, it is an invalid command. The character for MOD is the % symbol. If you want it to do the MOD of a number then you must do number % number. Thanks for at least looking to see if you could help.
-JF
-
-
Ah. Modulus. Haven't used it in C++, but that's fairly common in PHP.
5%4 = 1. 6%3 = 0. 9%5 = 4. Remainder of division. Helping in looping setups.
Though you may already know this. If not, should give you some idea.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks