Write a function in C++ to count the number of lowercase alphabets present in a text file “BOOK..txt".
Answers
Answered by
0
The full form of C++ is 'Class with'.
Answered by
0
Explanation:
Below is the function in C++ to count the number of lowercase alphabets present in a text file “BOOK.txt"":
void LowerLetters( )
{ clrscr( );
ifstream fin(""BOOK.TXT"",ios::in);
char ch;
int lowercount=0;
while(fin)
{fin.get(ch);
if(islower(ch))
lowercount++;}
cout<<""\nTotal number of Lowercase alphabets in the file = ""<<lowercount;
getch( );
} C++ is one of the most common and useful programming language. This language is used in numerous platforms to create the various actions. The programming language is also the base of the system.
Similar questions
Social Sciences,
7 months ago
Social Sciences,
7 months ago
Science,
7 months ago
Computer Science,
1 year ago