explicit cast 中文意思是什麼
explicit cast
解釋
顯式轉換-
Explicit conversions use the cast or convert functions
顯式轉換使用cast或convert函數。 -
An explicit conversion exists are you missing a cast
存在顯式轉換(是否缺少強制轉換? ) -
Instead the expression must include an explicit cast operation
相反,表達式必須包含顯式轉換操作。 -
Explicit numeric conversion is used to convert any numeric type to any other numeric type, for which there is no implicit conversion, by using a cast expression
顯式數值轉換用於通過顯式轉換表達式,將任何數字類型轉換為任何其他數字類型。對於它不存在隱式轉換。 -
Operations that combine an unsigned eight - byte integer and a signed integer require an explicit cast in order to clarify the result format
兼具無符號八位元組整數和有符號整數的運算需要顯式轉換才能使結果格式清楚明了。 -
Variable have incompatible data types, the expression requires an explicit cast as shown the second example
變量具有不兼容的數據類型,則表達式就需要進行顯式轉換,如第二個示例所示。 -
However, an explicit cast is needed to convert from
類型到整型的轉換需要用顯式類型轉換來完成。 -
For example, the following statement will produce a compilation error without an explicit cast
例如,不使用顯式類型轉換時,下列語句將產生編譯錯誤: -
You can never cast objects of sibling classes ( sharing the same parent ), even with an explicit cast
你永遠不可能轉化具有同一個超類的類的對象,即使是刻意轉化。 -
For example, the following statement generates a compiler error unless an explicit cast is used
例如,除非使用顯式強制轉換,否則以下語句將生成一個編譯器錯誤: -
This error occurs if you have code that attempts to convert two types that cannot be implicitly converted, such as in an assignment of a base type to a derived type that is missing an explicit cast
如果您的代碼試圖轉換兩種不能隱式轉換的類型(例如將基類分配給一個缺少顯式強制轉換的派生類) ,將發生此錯誤。 -
Although we will not use an explicit cast in the code for the 5. 0 benchmark, we do need to include it in the baseline measurement, as it is part of the work required to make the iteration useful
盡管對於5 . 0的基準測試我們不顯式使用強制轉換,但是我們需要在基線測量中加入它,因為這是使遍歷具有實用性所必需的。 -
Allows an explicit type cast from a
允許將顯式類型從 -
Unlike implicit conversion, explicit conversion operators must be invoked by means of a cast
與隱式轉換不同,必須通過強制轉換的方式來調用顯式轉換運算符。 -
Explicit conversion operators require a type cast be present in the source code to perform the conversion
顯式轉換運算符則要求在源代碼中指定類型轉換才能執行轉換。 -
Explicit pointer conversion is used to perform conversions, for which there is no implicit conversion, by using a cast expression
顯式指針轉換用於在不存在隱式轉換時通過使用強制轉換表達式來執行轉換。
分享友人