main
function takes (int argc, char *argv[]) parameters. argv is a pointer to pointer and argv[1] is a pointer to a char array too. You should send a character to isdigit
and isalpha
, not a pointer. You get a segmentation fault because of this probably.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…