Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.10 seconds.

  1. Re: Counting Vowels and Consonants in a String.

    Gotta love spoonfeeding...
  2. Re: Counting Vowels and Consonants in a String.

    Hey OP, did you get this figured out? You were pretty close yesterday, and I'm just wondering if you ever figured out what I was getting at.
  3. Re: Counting Vowels and Consonants in a String.

    Nope. And there is no need for guessing- simply trace through your program, by hand or with a debugger, and see what it's doing on that line. Hint- what happens when the space character (or any...
  4. Re: Counting Vowels and Consonants in a String.

    Not at all. I'm saying you should run through that code, especially at that line, to see what's going on. Pay close attention to what happens for the space character.



    Here's some pseudo-code...
  5. Re: Counting Vowels and Consonants in a String.

    Go through your for loop character by character, tracing through what's going to happen in each case. Think about it. What happens when c == ' '?

    Also, wouldn't it just be easier to have a List...
Results 1 to 5 of 5