This loop for(int i=0 ; i<50; i++). is incorrect. The entered string can be less than the size of the character array str . So instead use
確定! 回上一頁