Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Mod operator

Name: Anonymous 2007-01-16 18:30

I get division by 0 errors...how to make % operator work with 0? Ie 9%0, 7%0 etc

Name: Anonymous 2007-01-16 18:44

you can't

Name: Anonymous 2007-01-16 19:00

Why would you want to ?

Name: Anonymous 2007-01-16 20:09

>>2
You can, in /sci

Name: Anonymous 2007-01-16 22:59

try { 42%0; } catch (...) { cout << "im a dumbass lol\n"; }

Name: Anonymous 2007-01-16 23:07

Mod invokes the division section of the CPU, and is hence bound to throw devide by zero errors if you mod by zero. Why the fuck would you want to anyway?

Name: Anonymous 2007-01-17 4:18

I think most of the posters in this thread have been successfully trooled.

Name: Anonymous 2007-01-17 6:33

>>1
you're not trying hard enough, YOU HAVE TO PRESS THE KEYS HARDER

Name: Anonymous 2010-11-15 15:27

Name: Sgt.Kabu悎맦kiman윪㇮ 2012-05-28 21:56

Bringing /prog/ back to its people

Don't change these.
Name: Email:
Entire Thread Thread List