TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: PAUL WANKADIA
from: JASON LAVOIE
date: 1997-09-21 18:51:00
subject: Re: string input

PW>  JL> for some reason I can't seem to input a string with spaces in it.
PW>  JL> am I missing something?   like:
PW>  JL> char testvar[100];   cin >> testvar;
PW>  JL> how come I only get the first word?
PW> 
PW> It stops reading when it hits whitespace, IIRC.
thanks, but is there any way to input a string with spaces in it?
(all into the same variable)
Jason Lavoie
--- Renegade v5-11 Exp
---------------
* Origin: Cranial Disturbance (613)723-9841 (1:163/572)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.