isvowel function
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 15 of 21

Thread: isvowel function

Threaded View

  1. #16
    Join Date
    Apr 1999

    Re: isvowel function

    Quote Originally Posted by psfign View Post
    Ok, I tried to indent better. I also worked on the return statement, but it's not counting properly. Here's what I have so far. I cant see why it always only counts 1 vowel.
    Are you debugging your code, or just placing statements hoping the program will work?

    If a program doesn't behave correctly, then it's time to learn how to debug your program. Debugging a program is part and parcel of learning how to write a program.

    No one writes perfect programs the first time. Your compiler more than likely has a debugger, where you can step through the program one line at a time, watching variables and seeing how the program flows. If you did that, not only would you know what's wrong, you will learn how your program is doing what it's doing, i.e. program flow.

    At the very least, you should have output the value of variables or some other statements telling you what your program is doing at certain times.


    Paul McKenzie
    Last edited by Paul McKenzie; March 30th, 2013 at 10:09 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)