it takes me really long time to figure this out and am not making any progress so i was wondering if someone could help.
how do i use, for example, isalpha in if statement. like:
if ( argc != 2 || isalpha(argv[1])
{
return 1;
}
what i want is to isalpha check if argv[1] are characters and not numbers and if its not characters i want to make return 1; go through. writing it like this:
string key = argv[1];
if (argc != 2 || isalpha(key)
{
return 1;
}
is not helping. now typing ! before isalpha is not helping either. is it possible to use isalpha and other similiar functions(isdigit) like this or not? thanks