void adre2(int &a,int &b){
int t;
t= a;
a= b;
b= t;
}
错误提示为:
parameter.c:27:16: error: expected ')'
void adre2(int &a,int&b){
^
parameter.c:27:11: note: to match this '('
void adre2(int &a,int&b){
^
parameter.c:27:16: error: parameter name omitted
void adre2(int &a,int&b){
^
parameter.c:29:5: error: use of undeclared identifier 'a'
t= a;
^
parameter.c:30:2: error: use of undeclared identifier 'a'
a= b;
^
parameter.c:30:5: error: use of undeclared identifier 'b'
a= b;
^
parameter.c:31:2: error: use of undeclared identifier 'b'
b= t;
^