TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: PHIL OHL
from: MAURICE KINAL
date: 1998-03-20 07:35:00
subject: I`m an idiot

18 Mar 98 17:12, Phil Ohl wrote to All:
 PO> going to be spaces withing your input and I have learned to use
 PO> 'getline' in its place. However 'getline' doesn't work all the time
 PO> either especially when i do something like:
 PO> char name[20];
 PO> cout<<"Enter name: ";
 PO> getline(name, cin);
Try this instead;
        char name[20];
        cout << "Enter name: ";
        cin.getline(name, 20);
That should do it.
--- Msged 4.10
---------------
* Origin: ZOLTAN -> Ladysmith, BC (250) 245-7168 (1:351/255)

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™.