Hey! I'm a beginner in C++ and have been trying to get this code working, to no avail. It is suppose to read in text from a file and replace as many letters as you want with other letters that you also choose. However, it isn't working and every time I solve one problem another arises. Any help as to how to fix this would be amazing. Thanks!
Your char array letter should throw an error when you try to compile
That is because scramtest is not a const value. Therefor it will throw an error because you are not dynamically allocating the array.
I see, and I'd like to say that solved my problem but nothing changed. I had no errors when compiling previously. I'm not exactly sure why I'm not getting an error, but I think my problem is regarding when I transfer filed back into the document. I think something is off my loops, but I can't figure out what.
Arrays aren't suitable for tasks where the number of the objects is only known at runtime, you should have started with vectors. However, this particular task is begging for map (you're *mapping* characters to other characters).