The problem is that after you read the price using >> the endline following the price remains in the input stream. Next time you call getline, it will read an emtpy line (i.e. only the endline...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: D_Drmmr Search: Search took 0.08 seconds.
Results 1 to 2 of 2
|
Click Here to Expand Forum to Full Width |