Issue when using modulus operator or other arithmetic operands in a class [closed]
Hello im having an issue when using the % operator in my class method functions.The console window pop ups but then another window opens when saying " ".exe has encountered a problem and needs to close. any idea? Heres the line of code of when i omit works fine.
r = gnumer % gden;
Is gden
zero? Modulus by zero is just as bad as dividing by zero.
It may because gden ==0, or if gden is not a global or static variable, did you forget to initialize it?
精彩评论