C++中的static_cast執行非多態的轉換,用於代替C中一般的轉換操做。所以,被作爲隱式類型轉換使用。好比: int i; float f = 166.7f; i = static_cast<int>(f); 此時結果,i的值爲166。ast