untitled
viviti
Plus Two Programs

Index of programs:Set 6


More on strings

  • Find vowels in a text
  • Find vowels in a text file
  • Reverse a string and copy one string to another without using functions but class
  • Count number of words.A simple one

  • <<Previous

    Program 2:

    #include #include #include #include /* Author : Rohith.R Email : rrohithr@gmail.com Category : Begineer Program : Read text from file and count vowels Meant For : Plus Two students,Kerala */ void main() { char ch; clrscr(); ifstream infile("vowel"); int v=0; cout<<"\nText:"; while(infile) { infile.get(ch); ch=toupper(ch); switch(ch) { case 'A': case 'E': case 'I': case 'O': case 'U': v=v+1; } } cout<<"\n Number of vowels"<


    Program 3:


    Program 4:




    Go home                                       


    Web Hosting · Blog · Guestbooks · Message Forums · Mailing Lists
    Easiest Website Builder ever! · Build your own toolbar · Free Talking Character · Email Marketing
    powered by a free webtools company bravenet.com