C++ Count the Vowel of a String Source Code

Jul 16, 2011 10 Comments by 4352 Views

This C++ Program, will asked the user to input string characters and display the counted vowel from A, E, I, O, and U. Vowel with Zero count will not be displayed on the Program.

Note: The code below is using the old Functions, Header of C++ and only work on 90’s Turbo C++.

Sample Screenshot Count Vowel

Please add credit to GensanBlog.com, when you use it on your website.

Download Source Code Below:



C++, Geeks

About the author

I'm a Freelance Web Developer (PHP, Flash, Ajax, Javascript, CSS & HTML 4/5), iOS Developer, SEO expert and a Graphic Designer from General Santos City. Freelancer.com Profile | Libnary.com | Pattern Lockscreen

10 Responses to “C++ Count the Vowel of a String Source Code”

  1. arzon says:

    This is not C++. Anyone who teaches you to code that way does not deserve to teach at all.

    Points:
    a. You are using the wrong header files.
    b. The return value of main() is not defined, and not the standard. And yet, at the end, you return 0.
    c. clrscr()? getch(), wtf?
    d. gets()? why still use C headers?
    e. strlen()? why bother?

    Here is my version of your program:
    http://pastebin.com/raw.php?i=sE21AtPW

  2. arzon says:

    I see that you deleted my original post. Thanks, since the comment formatting destroyed the layout of my code.

  3. Christine says:

    who cares dude?

  4. Erwin Bantilan says:

    @arzon.. actually arzon this is my VERY FIRST PROGRAM i ever coded 6 years ago.. ok?

    we are not allowed to used CLASSES, UDF, and ETC…

    I dont care if its STANDARD or NOT.. What is important I coded the right program…

  5. Christine says:

    INSECURE lng cguo na tot :D
    suya tuwad .. xDD

  6. arzon says:

    Christine: Who cares? Insecure? Part of software engineering is learning when other people correct your code. I corrected his work, where is insecurity in that? Can you give more constructive comments?

    Erwin: You don’t really need classes for writing a solution to something as simple of a problem as this. And you should really care about the standards, 6 years ago is 2006. ISO/IEC 14882:2003 already exists during that time (though I see you have edited your post to show that it only works on an archaic compiler). You may have the right program but doing it incorrectly is still wrong.

  7. arzon says:

    ” 6 years ago is 2006″ typo. make that 2005.

  8. Erwin Bantilan says:

    @arzon: yes arzon, I understand what you’re trying to say.. but kindly respect my post, as if you know everything..

    The old Turbo C++ 90’s coding is using the old headers stdio for scanf and printf functions equivalent for iostream cout and cin… the other function is for clear and pause display purposes only..

    and for your information, I am very proud of my teacher, who taught me this..

    Now to explain everything, I copied your code on Turbo C++, now see how many errors your codes have:

    http://gensanblog.com/files/arzon.jpg

    See now why we coded (HACK) like this arzon? Those Standards you are saying will not work on old Turbo C++.. got it?

  9. arzon says:

    Of course it won’t work in a 90’s era compiler, you just recently added the note on your post that it was coded in Turbo C++!

  10. erwinbantilan says:

    No Problem Arzon! Your comments helps me figure out, the difference of the old C++ coding from the new C++ coding..

    Thanks a LOT Arzon! I appreciate your help :D

Leave a Reply

DMCA.com Protection Status
© 2011 GensanBlog.com - All about General Santos City. Sitemap | Privacy Policy | Guidelines


Coded and Designed by Erwin Bantilan