[C++] c++ 获取引用地址 →→→→→进入此内容的聊天室

来自 , 2020-03-12, 写在 C++, 查看 126 次.
URL http://www.code666.cn/view/dfce0680
  1. #include <iostream>
  2.  
  3. int main() {
  4.         using namespace std;
  5.         int intOne;
  6.         int &rSomeRef = intOne;
  7.  
  8.         intOne = 5;
  9.         cout << "intOne: " << intOne << endl;
  10.         cout << "rSomeRef: " << rSomeRef << endl;
  11.  
  12.         cout << "&intOne: " << &intOne << endl;
  13.         cout << "&rSomeRef: " << &rSomeRef << endl;
  14.  
  15.         return 0;
  16. }
  17.  

回复 "c++ 获取引用地址"

这儿你可以回复上面这条便签

captcha