Search:

Type: Posts; User: Click_here

Search: Search took 0.02 seconds.

  1. Replies
    18
    Views
    2,745

    nonpuz: It's ok, we all have those days - That's...

    nonpuz:
    It's ok, we all have those days - That's why they put an eraser on the back of pencils.

    I try to avoid
    * Posting a fact that I can't find a source for .
    * Posting code that has not been...
  2. Replies
    18
    Views
    2,745

    I ran the OP's code where I confirmed that (in...

    I ran the OP's code where I confirmed that (in the word of the OP)


    What do you think happens to the data on stdin when scanf fails?...

    3 - Yes. When I ran my code with the while loop removing...
  3. Replies
    18
    Views
    2,745

    Have you ran my code... ... I bet that you...

    Have you ran my code...

    ... I bet that you haven't ...
  4. Replies
    18
    Views
    2,745

    There are a few similarities between scanf and...

    There are a few similarities between scanf and sscanf...
  5. Replies
    18
    Views
    2,745

    Clear stdin on the event of a fail and your code...

    Clear stdin on the event of a fail and your code will work fine.

    Here is a short bit of code that demonstrates the problem



    #include <stdio.h>
    #include <stdlib.h>
Results 1 to 5 of 5