tag:blogger.com,1999:blog-7085941.post-1114350097731740292005-04-24T06:39:00.000-07:002005-04-24T06:41:37.733-07:00Mix cin >> and cin.getline in C++ programIf the cin.getline() is used after cin >>, the getline may just get a '\0' bacause the last cin >> call left it.<br />How to fix it?<br /><br />cin.ignore(100,'\n'); <br />cin.getline(buffer1, 80, '\n');Joehttp://www.blogger.com/profile/04618327687649458144noreply@blogger.com