home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Actual 13
/
CDA13.ISO
/
cdactual
/
demobin
/
share
/
program
/
C
/
ANSICPP.ZIP
/
EX02004.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
|
1990-07-24
|
279 b
|
14 lines
// ex02004.cpp
// Global scope resolution operator
#include <iostream.h>
int amount = 123; // a global variable
main()
{
int amount = 456; // a local variable
cout << ::amount; // display the global variable
cout << amount; // display the local variable
}