Search:

Type: Posts; User: helloworld922

Search: Search took 0.12 seconds.

  1. Replies
    10
    Views
    3,159

    [SOLVED] Re: (Beginner) Program doesnt work

    Exactly. That's why your do-while loop never exited with the logical or: there was always at least one true expression, so the entire statement evaluated to true. It could never be false. Now examine...
  2. Replies
    10
    Views
    3,159

    [SOLVED] Re: (Beginner) Program doesnt work

    && is logical and. It means what you think it does: Is this true, and is that true? || is logical or. Note that its use in programming (and math) is a little different from its use in English: Is...
  3. Replies
    10
    Views
    3,159

    [SOLVED] Re: (Beginner) Program doesnt work

    Try building a logic table for your do-while conditional.

    If sentinelChar = 'Y', is it true or false? What if sentinelChar = 'a', or sentinelChar = 'n'?
  4. Replies
    10
    Views
    3,159

    [SOLVED] Re: (Beginner) Program doesnt work

    What is it doing that's wrong? Is there a compile/runtime error? What message is it giving you?
Results 1 to 4 of 4