what do I do now!




what do I do now!
Last edited by oblongmelon; 05-11-2008 at 08:22 PM.
the modulus operator gives you the remainder, such as 15%6=3
6 goes into 15 2 times and 3 is left over
____________________
IF A FAT GIRL FALLS IN THE WOODS
DO THE TREES LAUGH?




bless you.
Are you wondering about the workings of a modulus operator in general, or something specific to c++? In general, a modulus operator works like this:
Divides the value of one expression by the value of another, and returns the remainder.
result = number1 % number2
where % is the modulus operator.
For example,
20 % 8 would return a value of 4
stay low... keep moving...
wow dude i beat you by 4 minutesOriginally posted by Markel
Are you wondering about the workings of a modulus operator in general, or something specific to c++? In general, a modulus operator works like this:
Divides the value of one expression by the value of another, and returns the remainder.
result = number1 % number2
where % is the modulus operator.
For example,
20 % 8 would return a value of 4
and no prob oblongmelon
____________________
IF A FAT GIRL FALLS IN THE WOODS
DO THE TREES LAUGH?




Thanks guys I appreciate it..(and so does Becca)
I got distracted while I was typing my response.Originally posted by Burzhui
wow dude i beat you by 4 minutes
But I think mine was better.![]()
stay low... keep moving...
dude you kidding right, mine was right and straight to the pointOriginally posted by Markel
I got distracted while I was typing my response.
But I think mine was better.![]()
![]()
____________________
IF A FAT GIRL FALLS IN THE WOODS
DO THE TREES LAUGH?
Ever try to code:Originally posted by Burzhui
dude you kidding right, mine was right and straight to the point![]()
15%6=varname
That's one reason why I think my answer was better.![]()
stay low... keep moving...
you mean varname = 15 % 6;Originally posted by Markel
Ever try to code:
15%6=varname
That's one reason why I think my answer was better.![]()
I gave it in words and an example... boo ya grandma![]()
____________________
IF A FAT GIRL FALLS IN THE WOODS
DO THE TREES LAUGH?
Look at your first response, and tell me what order you put it in!Originally posted by Burzhui
you mean varname = 15 %6;
stay low... keep moving...
that was theory man
in mathematics 15%6=3
in programming
int result;
result = 0;
result = 15 % 6;
return result;
____________________
IF A FAT GIRL FALLS IN THE WOODS
DO THE TREES LAUGH?
Clarity is what it's all about, man. That's why I gave a CLEAR explanation.Originally posted by Burzhui
that was theory man
![]()
stay low... keep moving...
hey read the reply after mine... my explanation was understood...
wanna duel???![]()
____________________
IF A FAT GIRL FALLS IN THE WOODS
DO THE TREES LAUGH?
you missed plus in a ny case i'm a porn makingOriginally posted by Markel
![]()
I won.![]()
and here you go
and to finish you off
![]()
____________________
IF A FAT GIRL FALLS IN THE WOODS
DO THE TREES LAUGH?
That's lame. Just admit it - I'm better.Originally posted by Burzhui
you missed plus in a ny case i'm a porn makingand here you go
and to finish you off
![]()
![]()
stay low... keep moving...
uhhh ChaOriginally posted by Markel
That's lame. Just admit it - I'm better.![]()
i answered first and it was good and understandable... but your input is obviously valuable as well, so shake on it, and move on.
____________________
IF A FAT GIRL FALLS IN THE WOODS
DO THE TREES LAUGH?
Ok. You can go back to your "weekend interests".
stay low... keep moving...
Haha. this useless exchange was pretty funny to read.
Well, I was going to let this thread drop off the bottom, but as long as you "woke it up", I'll add one more thing. There was a reason that I "pressed" this issue. It is true that Burzhui's answer was adequate to meet the need. However, as an answer to a programming language question, it was weak as compared to what followed. I have been writing software for 30 years now, and believe me, I have learned the value of code that is carefully planned out AND DOCUMENTED as compared to something that is just slammed together and happens to work. The first takes a little longer up front, but in the end it usually saves time, and in the long run (for maintainability) it is infinitely better.Originally posted by BrewMaster
Haha. this useless exchange was pretty funny to read.
So, if you are in pursuit of a career dealing with software development, take a lesson from someone who's been there.
stay low... keep moving...
Bookmarks