home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_11_07
/
1107102b
< prev
next >
Wrap
Text File
|
1993-05-04
|
323b
|
20 lines
// int.cpp: Prompt for an integer
#include <iostream.h>
main()
{
int i;
cout << "Please enter an integer: ";
cin >> i;
cout << "i == " << i << '\n';
cout << "&i == " << &i << '\n';
return 0;
}
// Sample Execution:
// Please enter an integer: 10
// i == 10
// &i == 0xfff4