I've written a function to assign a unique number to a variable in an array. I've run into a problem where it won't leave the first loop.
What it's supposed to do is take a number, go through all of the recordnumbers until it reaches the last one. If the number has been used, it stops going checking for the number, increments that number, and starts checking again. If the number hasn't been used, it assigns that number to the recordnumber variable in the mobile struct.
I'm still fairly new at C++ - doing it for college - so it's probably a blaring error.