阅读背景:

比较类成员数组元素和主元素

来源:互联网 

I'm trying to compare my array elements, but when I compile it, the class member array does not show the values I copied into the array from my original array in main "key", but the array from main, "answer" keeps the values I enter, and I wrote a test loop after the program runs, just to see what's inside of the class member array"canswers", and it's the actual variables that I copied into the array from main "key". I'm trying to compare the two arrays ("canswers" and "answer") in the class function "grade", but I do not know what I'm doing wrong.Every time I compare them through a for loop, with an if statement, it does not work, and random characters appear. I wrote a test loop at the very end of the array to show the contents of the class member array "canswers", an it has all the right values that I copied from main, but it doesn't show or work when I compare the two. I tried to keep the code as clean as possible so you guys can easily read it.I'm trying to compare my array elements, but wh




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

分享到: