heyz dudes, i need a function which checks if input is a number or alphabets. I have created one myself but i believe that there is a function in C++ which does that. Can anyone help me out??
CODE
bool checknum(string s)
{
istringstream iss(s);
ostringstream oss;
int x;
iss >> x;
oss << x;
if( s == oss.str())
return true;
return false;
}
Thanks in adv
This post has been edited by WsaENoTsoCK: 28 Nov, 2006 - 05:06 PM