home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoftware Monthly 19…2 Programming Power Tools
/
MASO9512.ISO
/
cpptutor
/
cpptutor.arj
/
EXAMPLES
/
EX0407.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-09-13
|
265 b
|
16 lines
// \EXAMPLES\ex0407.cpp
#include <iostream.h>
int& change_int(int& x) {
cout << "Here is x " << x << endl;
return x;
}
void main() {
int x = 0;
change_int(x) = 5;
change_int(x) = 6;
cout << "Final value of x is " << x << endl;
}