-3
case 'f':
printf ("Great!!! lets create your fixed account\n");
printf ("\nA minimum purchase of 1000 units is required for this
account\n");
printf ("\nPrice per unit as of Sep. 15 is $52.69\n")
;
printf ("\nPlease enter required amount of units\n");
scanf("%d",&amount);
if (isdigit(amount))
{
printf ("invalid input\n");
success = 'f';
break;
你試過了什麼? – AntonH
我試過了isdigit,isalpha函數,但都沒有工作 – v620
你是否按照你的其他問題的意見中的建議?因爲有關於如何使用'scanf'來查看是否讀取了整數值的明確解釋。 – AntonH