Problem solved, thank you!
--------------------------------
Could someone help me out with one of my projects?
I'm trying to write a small Objective-C program that takes the users guesses of what a code made up of colors could be and tells him how many of them he got right and how many colors are in the code but not in the right place.
It's only partly done, but I get a problem when I try to call the printHistory method of the Code class I have created. The printHistory method should print an array containing (in theory) all of the user's guesses so far, in fact I have hard-coded some values in to test it. However, when I get to the part of the program where that (or even when I try a simple method in the class that only increments a count of how many guesses the user has made), I get a bad access error.
Could anyone tell me what I'm doing wrong, please? You can check out the project here:
http://www.2shared.com/file/8519245/1f20632c/Crack_the_Code.html
PS: Sorry for my terrible coding habits, I was going to clean up the code later once it was working properly, and wasn't planning to show it to anyone just yet
.
--------------------------------
Could someone help me out with one of my projects?
I'm trying to write a small Objective-C program that takes the users guesses of what a code made up of colors could be and tells him how many of them he got right and how many colors are in the code but not in the right place.
It's only partly done, but I get a problem when I try to call the printHistory method of the Code class I have created. The printHistory method should print an array containing (in theory) all of the user's guesses so far, in fact I have hard-coded some values in to test it. However, when I get to the part of the program where that (or even when I try a simple method in the class that only increments a count of how many guesses the user has made), I get a bad access error.
Could anyone tell me what I'm doing wrong, please? You can check out the project here:
http://www.2shared.com/file/8519245/1f20632c/Crack_the_Code.html
PS: Sorry for my terrible coding habits, I was going to clean up the code later once it was working properly, and wasn't planning to show it to anyone just yet