CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 22

Threaded View

  1. #10
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: Help needed with class BookType

    Quote Originally Posted by owllie View Post
    Hi Lindley,

    I wrote the requirements for the question in a separate post.

    "Customer lists are stored using a vector class. Book lists are also stored using a vector class. You must write your own vector class to be used in exercise 7. There must be only one vector class. Note that means you can have as many vector object as you need but there is only one vector class. STL data strctures cannot be used in this assignment."


    thanks
    Okay, so basically they're asking you to reinvent the std::vector class rather than using the existing one, so that you learn how it works internally.

    Therefore, your class should have an interface which is largely similar to std::vector. Take a look at the interface here:
    http://www.cplusplus.com/reference/stl/vector/

    Of course you do not need to support every method shown there, but a decent subset of them will be necessary.

    For the purposes of creating this vector class, you can forget all about Book objects; they aren't relevant.
    Last edited by Lindley; October 18th, 2011 at 01:32 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured