"%[^;]s" specifies that scanf will take all characters as input except ';' character. As soon as user enters ';' character scanf function stops reading input ...
確定! 回上一頁