Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Thread: do-while help!!!

    by Norm
    Replies
    13
    Views
    1,274

    Re: do-while help!!!

    What was the value of inf.ptr when you print it out?
    Print it out before the do{ and before the }while(

    Is the above invisible? I've asked that question many times.
  2. Thread: do-while help!!!

    by Norm
    Replies
    13
    Views
    1,274

    Re: do-while help!!!

    What was the value of inf.ptr when you print it out?
    Print it out before the do{ and before the }while(


    Adding {}s shouldn't change the way the code executes, but it will make the code easier...
  3. Thread: do-while help!!!

    by Norm
    Replies
    13
    Views
    1,274

    Re: do-while help!!!

    What about printing inf.ptr?

    What about {}s for all the if statements?
  4. Thread: do-while help!!!

    by Norm
    Replies
    13
    Views
    1,274

    Re: do-while help!!!

    The formatting still needs fixing.
    Nothing should follow a { on the same line.
    } should be on a line by itself and aligned below the statement with the pairing {
    Statements within loops and if...
  5. Thread: do-while help!!!

    by Norm
    Replies
    13
    Views
    1,274

    Re: do-while help!!!

    What is the value of inf.ptr when you print it out? Print its value before the loop as well as inside the loop so you can see what the computer sees when it executes the code.

    Also print the value...
  6. Thread: do-while help!!!

    by Norm
    Replies
    13
    Views
    1,274

    Re: do-while help!!!

    Please edit the posted code and fix the formatting so it can be read.


    What is the value of inf.ptr when you print it out? Print its value before the loop as well as inside the loop so you can...
  7. Thread: do-while help!!!

    by Norm
    Replies
    13
    Views
    1,274

    Re: do-while help!!!

    What condition causes the code to loop? Is that condition true or false?
    If it's true why is it true? Should the condition be false? What will make the condition be false?
    Print out the value of...
Results 1 to 7 of 7