Thanks cpjust :)
I've fixed that oversight and it now works, however not perfectly. The function works fine if a correct code is input however if an incorrect code is input then the error message is displayed 8 times then the loop is left :(
void reserve (int stands[]) //function header...
I have implemented changes and the program now compiles, however no matter what code I search for the program accepts it, so even if I input an invalid code the program accepts it as correct.
Here is the function:
void reserve (int stands[]) //function header paramater list with variables
{...
Thanks for your reply, sorry about not using tags or indicating where the error lies.
I'll looking into incorpating your help into a for loop and see how I go.
As for the headers, I was instructed by someone to include those headers and have been taught to use them when performing some of the...
Hi,
The problem I am currectly having is with the string function strcmp. I am trying to compare an array of 10 codes with a user inputted code, so when the strcmp finds the user inputted code in the array it can then edit that field in the array. So basically a process to search for a code and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.