📅  最后修改于: 2022-03-11 14:44:56.544000             🧑  作者: Mango
代码示例1
#include
using namespace std;
int main()
{
float f = 3.5;
int a = f; // this is how you do in C
int b = static_cast(f);
cout << b;
}