Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jan 2007
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    array manipulation in C++

    Hey there,

    I'm coding in C/C++ and I want an array I can manipulate easily. I know in Java we have ArrayList, do we have an equivalent in C/C++? I know we have the std::vector but if i want to be able to remove by search and not indexes.. what's my best bet?
    Last edited by klam; 09-17-2007 at 09:22 PM.

  • #2
    New Coder
    Join Date
    Jan 2007
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Nevermind, I think std:list will do the trick.. my problem is that i get this:
    "list: No such file or directory" at:
    #include <list>

    why? and if it's the compiler there's nothing I can do about it... any other ideas?
    Last edited by klam; 09-17-2007 at 10:03 PM.

  • #3
    Gox
    Gox is offline
    Regular Coder Gox's Avatar
    Join Date
    May 2006
    Location
    Ontario, Canada
    Posts
    392
    Thanks
    2
    Thanked 20 Times in 20 Posts
    Maybe give Vectors a try. http://www.cppreference.com/cppvector/index.html
    What exactly are you trying to do?

  • #4
    New Coder
    Join Date
    Jan 2007
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    nevermind i've solved it.
    Last edited by klam; 09-19-2007 at 11:40 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
    •