📜  显式与隐式 C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:50.721000             🧑  作者: Mango

代码示例1
int x = 0;
double y = 10.0f;
x = y; //implicit conversion
x = (int)y; //explicit conversion