??????????????????????????????????????????????????????????????
???????????????????????????&??????=??????????
???????纾�
????int q;
????int &ra=a;
?????????
????&???????????????????????谩? ???????????????????????? ???????????????????????谐?????? ???????????????????????????????????????????????????????胁???????????????????????????????
?????????????????????????????????????????????????????????????????????????????????????????????????????????娲�???????????????梅???娲�??????????
?????????????????????????????&ra??&a????
???????????????????谩????????????????????????????????????????????????????????
???????????
???????????????
????????????????????????????????????????C?????泻???????????????????????写???????????????????????????????????????????????????????????????????
???????????????效????????????C++?校?????????????????效?????????些???????????????????????????谩?
??????
????void swap(int &p1??int &p2)
????//??????????尾?p1?? p2???????? 
????{
????int p;
????p=p1;
????p1=p2;
????p2=p;
????}
???????????械???煤?????????????????????????????????????????谓??械??眉?????????????伪??????魏蔚????????
?????纾�??????婕�???swap?????????????????????写???
????main()
????{
????int a??b;
????cin>>a>>b;
????swap(a??b);
????//?????a??b?????蔚???swap????
????cout<<a<<' '<<b;       
????}
????????????????????????????????效??????????????????????????尾纬??????????????械???伪????????????????????????????????????校????尾伪??????????????????????????????
??????????????????????????????胁???胁?????蔚????????????????尾?????????????????????????????????????????????????????尾畏???娲�??????尾伪????????
???????????????????????????????????????????????????????????????????????????????????????????????效??????????谩?
???????????????????????????????????????效???????????????????????????尾畏???娲�????????????????"*????????"????????????????????????????????
???????????????????妫�????????????????????????????????????巍????????????????????????
????2??????????????
??????????梅?????????????????????????????
????????????&?????????尾??斜???????????
????{??????}
?????????
????1?????梅????????????搴�????????????????&
????2?????梅?????????????????????????胁???????????????????
??????
????#include <iostream.h>
????float temp;
????float fn1(float r);//????????fn1
????float &fn2(float r);????????fn2
????float fn1(float r)//???搴�??fn1??????????????????????
????{
????temp=(float)(r*r*3.14);
????return temp;
????}
????float &fn2(float r)//???搴�??fn2?????????梅??????????
????{
????temp=(float)(r*r*3.14);
????return temp;
????}
????void main ()//??????
????{
????float a=fn1(10.0)//??????????????????????????????
????float &b=fn1(10.0)//?????????
????//?????????????蟹???????????????????????????
????float c=fn2(10.0); //??3????????????????????????  
????//?????????????蟹??????????????????
????float &d=fn2(10.0); //??4????????????????????????
????//?????????????蟹??????????????????
????cout<<a<<c<<d;
????}