6.18 Ҫ󽫱ijֵĳ޷ʵִҪ
#include <iostream>
using namespace std;
int main( )
{ void swap(int,int);                 //
int i=3,j=5;
swap(i,j);                          //úswap
cout<<i<< <<j<<endl;              //ijֵδ
return 0;
}

void swap(int a,int b)      //ͼͨβabֵʵʵijֵ
{ int temp;
temp=a;                             //3ʵabֵ
a=b;
b=temp;
}
