正在加载图片...
Reviewing C in C++(cont) intⅸ=1024,Y=4096; int &rx= ix into pi= &rX rX=i++ Reference rX could be regarded as an alias or another name of ix Could rX represent iy later?---no pi &iri1//---Only a pointer could do thatReviewing C in C++ (cont.) int iX = 1024, iY = 4096; int &rX = iX; int* pi = &rX; rX = iY++; ◼ Reference rX could be regarded as an alias or another name of iX ◼ Could rX represent iY later? --- No! ◼ pi = &iY;//---Only a pointer could do that
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有