User Profile
Collapse
-
????Why the code is C not 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...
No activity results to display
Show More
Leave a comment: