Moving through an array one step at a time
Hi Everyone
I'm having a real issue with my array. I am currently doing an exercise for a chapter on arrays.
I have initialised the bool array, and all the elements are set to false.
I need to go through the array and only change one of the false elements to true each time, so if a false element is found and turned to true; the loop needs to stop and continue once more input is received.
I have tried several different ways to do this but none seem to work, does anyone have any suggestions?
Thank you!