21 > 2, 21 > 5, 21 > 10. Again, use a small dataset. You can still sort 2 books, 5 books. Try to reproduce the problem with 2 or 5 books. I can only help with what I know and what I would do. I...
Type: Posts; User: nadroj
21 > 2, 21 > 5, 21 > 10. Again, use a small dataset. You can still sort 2 books, 5 books. Try to reproduce the problem with 2 or 5 books. I can only help with what I know and what I would do. I...
Have you tried what I suggested in the edit above? Try working with only 2 books, instead of, as you said, "a big list of books". It will be very easy to debug it if you can reproduce the problem...
The code at line 146 is calling "checkBooks" when the given if statement is true (so that "checkBooks" returned false), so investigate that function. "checkBooks" returns false only when comparing...
The code at line 146 is calling "checkBooks".
What? I dont see any printing statements where it would say this, and I dont think's the error message you'd be getting from the OS. Whats the actual/exact error message? Is it a runtime error? ...