You have a close curly brace after your while statement that shouldn't be there. Please re post your code with code tags to make it easier to read. Also you might want to look up proper indenting and code formatting styles.
NathanOliver
Veteran Poster
1,084 posts since Apr 2009
Reputation Points: 215
Solved Threads: 189
while(patients != -1)}{{
That line.
pseudorandom21
Practically a Posting Shark
890 posts since Jan 2011
Reputation Points: 216
Solved Threads: 111