Your loop at line 70 definitely needs to change, the other posters in this thread gave some good advice there, however your function exchangeCHAR needs a bit of work also. The way it stands at the moment, it won't have any effect. When you pass a variable to a function by value, the function makes a local copy of that variable. That is what you are changing in your function. That means it won't have any effect on the original char variable. You will need to use a pointer or a reference to a char to make it work. I would recommend using a reference, since you would only need to change "char msgChar" to "char& msgChar"
Your loop at line 70 definitely needs to change, the other posters in this thread gave some good advice there, however your function exchangeCHAR needs a bit of work also. The way it stands at the moment, it won't have any effect. When you pass a variable to a function by value, the function makes a local copy of that variable. That is what you are changing in your function. That means it won't have any effect on the original char variable. You will need to use a pointer or a reference to a char to make it work. I would recommend using a reference, since you would only need to change "char msgChar" to "char& msgChar"
Thanks so much for the tip! However, even after making the change you suggested as well as the change that the previous poster suggested I still get an error! I'm sorry for being a bother, but I just can't understand what is wrong.