阅读背景:

将int数组中的整数与用户提供的整数进行比较

来源:互联网 

I have a two dimensional array, gridArray[5][7], populated with numbers (only the last row is populated with anything other than 0). I'm taking user input for a column and color, converting the color to a number representation, and then checking it against the rows in the array. If it's in the column the user enters, it should print "Your guess was correct". Instead, it seems to print "Your guess was incorrect", even if the guess was correct. I checked the boolean values, and it's returning false when it should be returning true. I can't figure out why. Here's my code:I have a two dimensional array, gridArray[5][7]




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: