CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: ertss

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    5,716

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

    Thank you Eri523! That helps a lot!
    But I met another problem with my code using getline(cin,temp);
    I changed my code to this. The thing is, the first time in the do...while loop, everything is...
  2. Replies
    6
    Views
    5,716

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

    Thank you Drmmr.
    But I still didn't get how to use push_back when you are dealing with a vector of class type.
    For example, in my code, the class type has two private members 'price' and 'title'....
  3. Replies
    6
    Views
    5,716

    How to manipulate vector of class type in C++

    Hi all,
    I built a class type 'books' which includes the title and the price of a particular book. And I want to use vectors to store all the books information I have. This code should be able to get...
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured