1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #if(0)
- #include <iostream>
- void func(int& ref)
- {
- ref = 100;
- }
- int main()
- {
- int a = 10;
-
-
- int& ref = a;
- ref = 20;
- std::cout << "a : " << a << std::endl;
- std::cout << " ref : " << ref << std::endl;
- func(a);
- system("pause");
- return 0;
- }
- #endif
|