static_cast (exp) function 可以將exp 轉換成new_type,但是不能夠確保轉換一定會成功,upcasting 一般可以成功,但是downcasting 則需要確認是否轉換 ...
確定! 回上一頁