cannot identify error....

I'm still on my movie rental program. I don't know what is causing this error. This coding for my customer list and movie list are nearly identical in format.



And I don't even know how to clarify the error. This is a link to see what it is: http://img441.imageshack.us/img441/8752/errorni.jpg

I can continue to use the program, but I get the same result. I'm using VS2008, and nothing shows up in the error list.
Last edited on
I don't think the problem is coming from the code you pasted.

Only thing I can see in the above code that would cause a serious problem is the potential buffer overflow (how big are 'stock' and 'clientele'? Are you sure you have room to add another one to the array?)

That and you also never put 'item' in 'clientele' in your addCustomer function.

But again, that wouldn't cause your problem.
you forgot:
clientele[size] = item;

i hear cin >> and cin.getline() don't get along. i guess that is what those cin.ignore() things are for?
Topic archived. No new replies allowed.