📜  c++ 强制转换为变量类型 - C++ 代码示例

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

代码示例2
int main()
{
    int a=20 , b= 25 , c= 19;
      int sum = a + b + c;
      float ave = (float) sum / 3;  //this is called type casting (float) sum 
      cout<<"Average is : "<