scanf ("%s", &k);. should be scanf(" %c", &k);. %c is the right format specifier for a character( char ) while %s is used for strings.
確定! 回上一頁