your while loop ends on line 36. this is one of the dangers of using book-brackets instead of having brackets on a line by themselves.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
while(!done)
{
if(cond)
{
code();
}
}//aligns to while start bracket.
vs
while(!done){
if(cond){
code();
} //what does this belong to? Can't see it visually.
} //or this, where did it start? nothing in the same column
that said book-indent is a thing people use, but it has no merits apart from saving money when printing a physical book.
char userSelection;
constchar PROCESS = '2';
if (userSelection == INPUT) // OK, comparing char to char
if (userSelection == 2) // 2 != '2'. The 2 is ASCII code for one of the unprintable chars?