User Profile

Collapse

Profile Sidebar

Collapse
babble
babble
Last Activity: May 5 '10, 11:15 PM
Joined: May 1 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • babble
    replied to c function/code to test number
    in C
    Basically, if the user enters any of the following strings:

    "3e343" - "ww3" - "2.2.2" - "33 44" - "fafa" - "+" - "-" - "324+1"

    They would get, "Invalid entry, please enter numerical values only"

    On the other hand, if the user enters any of the following:

    "343" - "-3242" - "+3242"...
    See more | Go to post

    Leave a comment:


  • babble
    replied to c function/code to test number
    in C
    I used if statements to check for different conditions, but, my if statement is getting way too large.
    See more | Go to post

    Leave a comment:


  • babble
    replied to c function/code to test number
    in C
    Can you be more detailed in your response?
    See more | Go to post

    Leave a comment:


  • babble
    started a topic c function/code to test number
    in C

    c function/code to test number

    So I am reading in a number from a string.

    I need to check if that number is valid.

    Invalid examples: "3e343" - "ww3" - "2.2.2" - "33 44" - "fafa" - "+" - "-" - "324+1"
    Valid examples: "343" - "-3242" - "+3242"

    Thanks!
    See more | Go to post
No activity results to display
Show More
Working...