This function is taking text from an input file, encrypting it, and outputting it into a file. In my for loop, it is doing the first part but not the second part(meaning if the input letter is greater than z)
can I get a little help?
What I see is:
Line 24: variable b has gone out of scope. b is defined only within the for loop at line 9. It goes out of scope with the } at line 22.
Line 26, 31,33,35: ditto
Did you intend the } at line 22? Your indentation and code seem to imply otherwise.
If I remove the } at line 22, your code compiles cleanly.
edit: Or perhaps you're missing an { at line 12. If I compare the two for loops, I see an { at line 25.