Exactly what is modulus/modulo? Every single one of my C++ books mentions it but doesn't really say what it is!!! It is used as division when comparing two int values. For example
#include <iostream.h>
int main()
{
int one = 10;
int two = 5;
if(one % two == 0) <---//This is where the modulus thingy is used
cout << "The first number is evenly divisible by the second";
else
cout << "The second number is not evenly divisible by the
second";
return 0;
}
I asked my math teacher what it is, and she said that "We aren't going to be getting into that during this school year" ;
ok thanks