| delorie.com/archives/browse.cgi | search |
| Message-Id: | <200002231313.OAA03776@bird.de.uu.net> |
| Date: | Wed, 23 Feb 2000 14:11:32 +0100 |
| From: | Jens Luedicke <jens AT irs-net DOT com> |
| To: | djgpp AT delorie DOT com |
| Subject: | keyboard input/output in c++ |
| X-Mailer: | Jens Luedicke's registered AK-Mail 3.1 publicbeta2a [ger] |
| Mime-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
hi there ...
if I type in "perl is cool", it
just displays "perl", why?
#include <iostream>
using namespace std;
int main()
{
char input[2];
cout << "type in some text: ";
cin >> input;
cout << input;
return 0;
}
with friendly regards....
Jens Luedicke <jens AT irs-net DOT com>
//PGP Public Keys: pgp-keys AT irs-net DOT com <autoresponder>
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |