#include<iostream> #include<conio.h> #include<fstream.h> #include<ctype.h> void main() { ifstream fin("story.txt"); char c; int count1=0; while(fin) { fin.get(c); if(isupper(c)) { c=toupper(c); } if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u') { count1++; } } fin.close(); cout<<" \nnumber of vowels is :"<<count1<<endl; getch(); }
It's an attempt to help all C.Sc. students (of Class 11 and 12). Search for your needs, for better search try labels (at right sidebar), and message your reviews and requests. Have a Pleasant Programming !! :)
Make Your Search Easy ! :) Use me
Friday, February 17, 2017
To count number of vowels in a file :-
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment