没看懂,先学汇编,再看C++ 确实有点东西 会麻烦....比如像这样的东西 我只能用汇编的方法来理解.才能明白...
C++代码
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int _tmain(int argc, _TCHAR* argv[])
- {
- int Count = 1;
- int &ref= Count; //其实就是取 Count变量的地址 写入ref
- // 也就是说 int &ref 是个指针.指向 Count 的指针.
- // So, int *ref2 ;
- // ref2 = &Count;
- ref = 50;
- ref = 31;
- ref++;
- cout<<Count<<endl;
- system("pause");
- return 0;
- }


