Write a function in a C++ to count the number of vowels, consonants, digits and special characters present in a dynamically selected text file.
void main() { system("cls"); char filename[20]; system("dir/w *.txt"); cout<<"Enter the file nam...
void main() { system("cls"); char filename[20]; system("dir/w *.txt"); cout<<"Enter the file nam...
void countVowels() { ifstream fin(“NOTES.TXT”); char ch; int count=0; while(!fin.eof()) { fin.get(ch); if (isalpha(ch)) ...
void countLines() { ifstream fin(“NOTES.TXT”); char ch[80]; int count=0; if (!fin) { cout<<”Error opening file!” ; ...
void countLower() { ifstream fin(“NOTES.TXT”); char ch; int count=0; while(!fin.eof()) { fin.get(ch); if (islower(ch)) ...
void countCapitalWord() { ifstream fin(“NOTES.TXT”); char word[25]; int count=0; while(!fin.eof()) { fin>>word; if ...
void countLower() { ifstream fin(“NOTES.TXT”); char ch; int count=0; while(!fin.eof()) { fin.get(ch); if (islower(ch)) ...
void CountLine( ) { char line[80]; int Count=0; ifstream fin (“NOTES.TXT”); while(!fin.eof()) { fin.getline(line,80,‘\n’)) ...
BRIEF ON CHAPTER Boolean Algebra: A modern algebra which uses the set of numbers 0 and 1, the logic number used to solve logic problems...
Download the File. Click here to Watch the Explanation & Developing Video