I started rewriting one of my old programs with what I know now. The thing is Ive been getting this runtime error in my checkInventory() function, I have no clue what is wrong with it. It worked before it just stopped working I tried rewriting that section just isn't doing anything. Heres the code.
What are you using to compile this exactly? I just ran it through three different compilers, all of which slapped me in the face for trying to compile this example.
http://codepad.org/xb1f3Vjs
It only shows one error because of the compiler settings but there's probably 20 or so after that.
The member Items of instance itemsX, has an undefined size. On line 48, you extract a line from the file and store it into Items which is an array of an undefined size. You really should define a size for Items beforehand.