#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;
}
#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;
}