home *** CD-ROM | disk | FTP | other *** search
- // ex06001.cpp
- // The reference
- #include <iostream.h>
-
- main()
- {
- int actualint = 123;
- int& otherint = actualint;
-
- cout << '\n' << actualint;
- cout << '\n' << otherint;
- otherint++;
- cout << '\n' << actualint;
- cout << '\n' << otherint;
- actualint++;
- cout << '\n' << actualint;
- cout << '\n' << otherint;
- }