home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Plus SuperCD (UK) 1998 May
/
PCPlus May 1998=disk A.iso
/
full
/
CBUILDER
/
SAMS
/
SAMPLES
/
CHAP01
/
NULLTEST.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
|
1997-02-12
|
281 b
|
16 lines
#include <iostream.h>
#include <conio.h>
#pragma hdrstop
int main(int argc, char **argv)
{
char str[] = "This is a string.";
cout << str << endl;
str[7] = '\0';
cout << str << endl;
cout << endl << "Press any key to continue...";
getch();
return 0;
}