g1-02971.in
g1-02971.out
执行 C++ 代码 cout << (12 + 12.12) 将报错,因为 12 是 int 类型,而 12.12 是 float 类型,不同类型不能直接运算。
cout << (12 + 12.12)
12
int
12.12
float