scanf ("%10[^abcd]", ptr);If you want to limit the number of characters in the ... scanf("%[a-zA-Z]", ptr);For the minus sign-, the-character will only be ...
確定! 回上一頁