home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
C++-7
/
DISK4
/
SAMPLES
/
CPPTUTOR
/
CONST.CP$
/
CONST
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1991-12-12
|
276 b
|
15 lines
// CONST.CPP
// This is an example program from Chapter 2 of the C++ Tutorial. This
// program demonstrates the const qualifier.
#include <iostream.h>
void main()
{
const int SIZE = 5;
char cs[SIZE];
cout << "The size of cs is " << sizeof cs;
}