摘要:
#include<iostream>#include<string>usingnamespacestd;voidreferenceTest(int&a,int&b){a=4;b=5;}voidpointerTest(string*a,string*b){stringkk="abc";a=&kk;*b="5";}intmain(){intx=0,y=0;referenceTest(x,y);cout<<"x="<<x<<",y="&l 阅读全文
posted @ 2011-07-21 15:57 钟悍 阅读(546) 评论(0) 推荐(0) 编辑