One of our recent LAB assignments was to take some provided input files and use them to create complete C++ Programs. The second one of which gave me a bit of trouble.
What you're supposed to do with this program is extract a message from an input file and write it to an output in all uppercase letters. However, after creating the program, the first iteration only wrote a capital "O" to the output file, and after some tweaking, more letters were written, the problem is the output was little more than random letters from the message.
The output file is supposed to have the same message, except in all caps. Yet when run and the file is viewed, it comes out as random capital letters in sequence from the message. I get the feeling I'm doing something wrong here that I'm not seeing. Does anyone know what it is?