#include <iostream>
#include <string>
using namespace std;
// 函数默认参数
void move(int step= 1,int delta= 100);
int main()
{
move();
return 0;
}
void move(int step,int delta)
{
cout<<"moving:"<<step<<","<<delta<<endl;
}
10004 函数默认参数
最新推荐文章于 2022-06-16 17:37:34 发布