Search:

Type: Posts; User: WaltP

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    2,261

    It's because when C/C++ attempts to read a number...

    It's because when C/C++ attempts to read a number and gets a non-number, the input functions stop reading at that point.
    The offending character stays in the buffer.
    Next read the character is...
  2. Replies
    10
    Views
    2,261

    He didn't? Yes he did. I just expanded on...

    He didn't?



    Yes he did. I just expanded on how...
  3. Replies
    10
    Views
    2,261

    As laserlight suggested, use a string to input...

    As laserlight suggested, use a string to input the values. They won't goof up if you enter the wrong thing.
    Then you have to check each character in the string to make sure it's a valid number....
Results 1 to 3 of 3