|
From: Carlos d. M. <cg...@wo...> - 2002-11-27 11:16:30
|
I believe what Olufuwa want is use the functions ischar from iomanip.h. See at them. I would take the input to a character string, check with ischar or isnumber, and pass the numbers to other strings and then convert them to number if they're not, or display the error message. If he makes what you are proposing, when he enter not a number but a character string he will have problems of cursor scrolling till closing the program, or simply he won't notice what's happening, till two month after he remembers "Hey! that program was for numbers!!!" |