I have a project due tomorrow that I've been working on for a while and I'm just plain stumped. This is exactly what's required of me:
Perform a few activities with a data file. Create an input text file. Open an output file and the input file. On the screen, display your heading (see first program for what it should contain) Echo all characters read from file to both the console and to the output file. (The output file will contain only a copy of the input file.) On console, also display a “table” with headings showing how many digit, alpha, and other characters appear in the input file. The ‘\t’ character is handy for tabbing between columns. To console, display the total number of characters in the file.
This is just a basic programming course so we aren't using complicated stuff.
I'm not asking for an answer to the problem, I just need help figuring out how to clear my errors and if there are any other major issues that are noticeable.
You have some issues. You should be reading the input file character-by-character not as strings. Also if he wants a "table" you should probably look at the setw() function that displays columnar output. You should by all means do your own work, but if you would like a guide the following does what you want and not much else.