📜  c++ 变量的初始化 - C++ 代码示例

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

代码示例1
// ;
//static initialisation:
int acceleration=4;
//alternative:
int acceleration;
acceleration=4;
//dynamic \initialisation:
int acceleration;
std::cout<<"Enter the value of the acceleration\n";
std::cin>>acceleration;