To pick up a char or string value when it is entered into a float or int before it crashs the program? then kick it out and get new input<br>Any ideas!!
Your best bet is to pick up the input as a string then do a conversion using something like strtod(cont char s*, char **endptr), atof(const char *s), or even printf. It's going to depend on wether you use stings or an array of characters. I personnally prefer to use strings and atof or atoi.<br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.