Hi,
I'm trying to write a bit of code to ensure that a user inputs only digits (an int) when promtped.
I have been successful using a char array and tested it using isdigit, but then i need to pass it to a function as only an integer.
I'd appreciate any help with either how to test whether an input is an interger or to change a char array to an int. (Note, I'm not asking for someone to write the program for me, just for suggestions and explanations of how to use them)
Thanks for any help.