📜  c++ 将 int 转换为 double - C++ 代码示例

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

代码示例1
int a{5},b{2},c{9};
double d = (double)a / (double)b + (double)c;