void countLower() { ifstream fin(“NOTES.TXT”); char ch; int count=0; while(!fin.eof()) { fin.get(ch); if (islower(ch)) count++; } fin.close(); cout<<"There are "<<count<<" Lower case alphabets in NOTES.TXT file."; } void main() { countLower(); }
No comments
Post your comments