Question: #include #include Using namespace std; Int main ( ) { / / Array to store the frequency each chapter int charCount [ 1 2 8
#include
#include
Using namespace std;
Int main
Array to store the frequency each chapter
int charCount ;
file name
string filename;
get the file naemfrom the user
Cout Enter the name of the text file:";
cin fileName;
open the file for reading
Ifstream inputFilefileName;
check the file open successfully
ifinputeFile.isopen
cerr "Error opening fill: tolowerch;
Check if the character is a letter if isalphach
Increment the count for the
character charCountch if charCountc cout c c: charCountc
endl;
return ;
Can you check please what is wrong with it and why this program shows error?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
