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.

  1. Re: How to manipulate vector of class type in C++

    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...
  2. Re: How to manipulate vector of class type in C++

    So why call it books, i.e. not book (singular).

    You create an empty vector, so bvec.begin() equals bvec.end(). Dereferencing that iterator gives undefined behavior. Instead, create and initialize...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured