Results 1 to 2 of 2

Thread: map.h VS vector.h

  1. #1
    Senior Member
    Join Date
    Oct 2003
    Posts
    394

    map.h VS vector.h

    What is better to use if i want make one program with arrays and possibiliti to changes.

    It is easy with vectors, but it makes program big.
    In map, I cannot change just one item that i want and if items have different type.

    What, How and Where can I find info about this?

    pls give me some advices.

    //I just studing C++//I am too bad with classes//

  2. #2
    Ninja Code Monkey
    Join Date
    Nov 2001
    Location
    Washington State
    Posts
    1,027
    You can change single items with maps, you just need to look up how to do it. You really need to get a reference on the stl. I highly reccommend this book - http://safari.oreilly.com/JVXSL.asp?...&r=&o=1&page=1
    "When I get a little money I buy books; and if any is left I buy food and clothes." - Erasmus
    "There is no programming language, no matter how structured, that will prevent programmers from writing bad programs." - L. Flon
    "Mischief my ass, you are an unethical moron." - chsh
    Blog of X

Posting Permissions

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