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
/
INTRO25.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-02-18
|
399b
|
24 lines
//INTRO25.CPP--Example from Chapter 3, "An Introduction to C++"
#include <iostream.h>
#include <string.h>
#include <conio.h>
int main()
{
int i;
char text[80];
cout << "Type \"end\" to quit\n";
for(cin.getline(text,80);strcmp(text,"end") !=0; cin.getline(text,80))
{
for(i = 1; i <= strlen(text); i++)
{
cout << "-";
}
cout << '\n';
}
return 0;
}