recursive function: convert int to stringAlthough my attempt isn't terribly readable, it's recursive and it handles both positive and negativ...
help with this pleaseThe largest number a 4-byte integer can hold is 2147483647, while the smallest number it can hold is...
help with this pleaseYou're testing the variable for invalid state with [code]enter != cin.bad()[/code], rather than test...
Trouble with Input ValidationA good way to do it is to read input into a string, then convert that string to the intended type wi...
how to check if number is integer?I like to use something like this: [code] #include <iostream> #include <sstream> int get_int(char ...
This user does not accept Private Messages