Quote:
Error line 4: clscr() undeclared first use of this identifyer
Error line 10: numSwimmers undeclared first use
....
|
It just goes on and on, how many swimmers do you have? Are you sure the name you input are exactly represented in your swimmers list ?
The code shown here is of no use what so ever. the proclaimed piece where you error out isn't even represented in the two segments, there isn't any part of it, which would be the smallest compilable part that shows your error....
What is the value of your currentE? What is the value of your inputv ? sometimes the easiest way to figure out why strange things happen, is to fill your code with debug output displaying every variable that might have some influence with the expected behaviour.