home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Supreme Volume 6 #1
/
swsii.zip
/
swsii
/
099
/
IOSTREAM.ZIP
/
EX_I11.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-07
|
378b
|
24 lines
// EXAMPLE INPUT-11
// DEMONSTRATE HOW TO READ IN A
// CHARACTER AND BYPASS LEADING
// WHITESPACE
#include <header.h>
int main()
{
const char quote = '\'' ;
cout << "Enter a character: " ;
char ch ;
cin >> ch ;
cout << "You entered: "
<< quote
<< ch
<< quote
<< '\n' ;
return 0 ;
}