You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
//void a(int i1=1,int i2);//有默认值的后面的参数都必须有默认值
|
|
void a(int i1,int i2=2);
|
|
|
|
int main(){
|
|
a(1,2);
|
|
return 0;
|
|
}
|
|
|
|
void a(int i1,int i2){
|
|
cout << i1 << i2 << endl;
|
|
}
|
|
|