This program is designed to anylize any character put into it from an input file as a letter,(capital, lowercase,consonate, vowel), digit (odd or even), and punctuation symbols. All the output should go to a file, unfortunatly the header function is not going to the output file and I do not no why. All it shows is the the character analysis. Any help would be really appreciated
in main you are opening outfile and then in all the functions you are again opening the same file and not closing it. just open it once in main and use the stream object.you can pass the object to all these functions. Also, whenever you return from your program, close all the open file streams.
Also, in line 18 you cannot use 'c' without initializing it.
if (c>=48 & c<=57)
arey you trying to use && here? check for the precedence of the operators.
It's not necessary to explicitly close a file. When the file object goes out of scope and its destructor gets called, the file is closed automatically.