num will always contain an integer because it's an int . The real problem with your code is that you don't check the scanf return value.
確定! 回上一頁