home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Supreme Volume 6 #1
/
swsii.zip
/
swsii
/
099
/
IOSTREAM.ZIP
/
EX_I21.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-07
|
441b
|
26 lines
// EXAMPLE INPUT-21
// DEMONSTRATE HOW TO READ IN A
// STRING AND BYPASS WHITESPACE
// TOTALLY (LOOKS LIKE scanf)
#include <header.h>
const int length = 100 ;
int main()
{
char string [length] ;
const char quote = '\"' ;
cout << "Enter a string: " ;
cin >> string ;
cout << "Your string: "
<< quote
<< string
<< quote
<< '\n' ;
return 0 ;
}