home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ for Dummies (3rd Edition)
/
C_FD.iso
/
C__FD.EXE
/
C++ FD
/
CHAP12
/
CHAP12_6.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-09-02
|
223 b
|
19 lines
// Chap12_6.cpp
class SillyClass
{
public:
SillyClass(int& i) : ten(10), refI(i)
{
}
protected:
const int ten;
int& refI;
};
int main()
{
int i;
SillyClass sc(i);
return 0;
}