Saved Bookmarks
| 1. |
Write a function in C++ to count the number of lowercase alphabets present in a text file “BOOK..txt". |
|
Answer» int Countalpha() ifstream ifile ("BOOK.txt"); char ch; int count =0 while (! ifile.eof() { ifile.get(ch); Ifele.get(ch) if(isfower(ch)) count ++; } ifile.close(); return (count) } |
|