User Profile

Collapse

Profile Sidebar

Collapse
docmur
docmur
Last Activity: Sep 27 '07, 09:13 PM
Joined: Sep 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • docmur
    replied to Decting user input for float or int
    in C
    ????Why the code is C not C++
    See more | Go to post

    Leave a comment:


  • docmur
    started a topic Decting user input for float or int
    in C

    Decting user input for float or int

    Okay heres my problem I have a problem called Calc which the user enters 2 numbers and a sign to be done with what is entered
    EX:

    ./calc 200 + 200
    or
    ./calc 200.20 + 200

    Okay thats easy where I can't seem to get, my prof wants the input checked to see if the char *argv[1] or char *argv[2] contains a float or int. so I have to check for a decimal point.

    I know I can search the...
    See more | Go to post
    Last edited by sicarie; Sep 27 '07, 07:04 PM. Reason: Code tags
No activity results to display
Show More
Working...