home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
OTHERUTI
/
TCPP30-3.ZIP
/
EXAMPLES.ZIP
/
INTRO33.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-02-18
|
435b
|
19 lines
//INTRO33.CPP--Example from Chapter 3, "An Introduction to C++"
#include <iostream.h>
int main()
{
int intvar = 10;
int *intptr;
intptr = &intvar;
cout << "\nLocation of intvar: " << &intvar;
cout << "\nContents of intvar: " << intvar;
cout << "\nLocation of intptr: " << &intptr;
cout << "\nContents of intptr: " << intptr;
cout << "\nThe value that intptr points to: " << *intptr;
return 0;
}