Hiya everyone, I'm new to this site and I really like it here.
I just started programming and for the first time I'm running up a wall (yikes)
What is happening with my code is that in the NumberChecker function is shitting it self.
But little brief in:
I'm writing a program for airline seating which in it's essence is about double sided arrays. And it's been all fine and dandy until I input XXn into the program.
There it just goes in and gets stuck in a foreverever loop. (And I don't want that)
People have been telling me to do if sentences to check for it, but I've tried, oh how I've tried.
But here's my code and please explain to me how to do it, I've had people explain it to me, but I just can't seem to put my finger on it! So please help me.
Thank you.
Here's the code:
How do you know it's number checker that's broken? Your main() function is exercising every single function you've written. Also, what input are you providing that makes it misbehave? Why are you passing a parameter to that function at all, since you read standard input over it anyway?
OK The code has been fixed a lot, but there is now a new problem.
It will read in the input the first time, but everything after that the user has to do the input twice. *Fixed