Search:

Type: Posts; User: CommonTater

Search: Search took 0.02 seconds.

  1. Replies
    22
    Views
    5,101

    Ok you win.

    Ok you win.
  2. Replies
    22
    Views
    5,101

    From Post #5.... Top line... "Try it like...

    From Post #5.... Top line...

    "Try it like below.... The problem is that you were testing ch before it had any legitmate value assigned..."

    Now as I see it he has 3 choices here...

    1)...
  3. Replies
    22
    Views
    5,101

    That is ONE way to fix the problem. There was no...

    That is ONE way to fix the problem. There was no intervening code and nothing else that would be affected by the solution I offered so I see no harm in it.

    I STILL don't understand why you think...
  4. Replies
    22
    Views
    5,101

    I know... sorry about that... but I don't have...

    I know... sorry about that... but I don't have much tolerance for being blamed for stuff I didn't/wouldn't say or do.
  5. Replies
    22
    Views
    5,101

    Ok, then... if you are finding fault with...

    Ok, then... if you are finding fault with iMalc... don't quote me.

    GEES
  6. Replies
    22
    Views
    5,101

    Ok... one more time for clarity... 1) I did...

    Ok... one more time for clarity...

    1) I did not, would not and will not say the loop was the problem.
    2) No the loop was not the problem.
    3) The problem he had was not the loop.
    4) The loop...
  7. Replies
    22
    Views
    5,101

    That's right. It didn't work because the...

    That's right.

    It didn't work because the first time he tested ch it was not intialized with any valid value.

    Changing the loop was how I chose to fix the problem.

    And yes he could have...
  8. Replies
    22
    Views
    5,101

    Yep. By changing the loop so ch is assigned...

    Yep. By changing the loop so ch is assigned before it's tested we eliminated the problem.
  9. Replies
    22
    Views
    5,101

    Try it like below.... The problem is that you...

    Try it like below.... The problem is that you were testing ch before it had any legitmate value assigned...




    #include <stdio.h>

    int main()
    {
    char ch;
Results 1 to 9 of 9