Im new to the board but use it quite a bit for reference. I am attempting to write a program that reads an input file, converts each line to a c-string, adds the value of 4 to each character and then outputs it into a new .txt file called Encoded. I seem to be getting a compiler error and am stuck on how to correct it.
And by the text that accompanies those errors, I mean the actual text generated by the compiler that accompanies the error numbers you have given us, not the abbreviated version you've supplied.
cire sorry misread what was asked. The LNK 1120 is an unresolved external and LNK2019 unresolved external symbol_WinMain@16 reference in function__tmainCRTStartup
That helped resolve the linker errors. Thanks! The other issue Im having now is that nothing is wiring to my output file. When I go to open it in notepad it appears to be blank and then goes into not responding and nothing shows up.
Don't close the input file before you're done reading. Loop on input extraction. Your code strips newlines from the input but doesn't add them to the output. I'll let you figure that out.