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

Thread: sorted vector

  1. #1
    Join Date
    Sep 1999
    Location
    Sweden Karlstad
    Posts
    1

    sorted vector

    Is there any class (similar to Vector) where you can add Objects sorted after
    integer, and you could have many Objects with the same integer to be sorted after.


    add(1, object1);
    add(5, object2);
    add(3, object3);
    add(1, object4);
    add(3, object5);

    result

    object1, object4, object3, object5, object2


  2. #2
    Join Date
    Sep 1999
    Location
    Sofia, Bulgaria
    Posts
    48

    Re: sorted vector

    For JDK 1.2 have a look at java.util.SortedSet

    Leon
    http://people.bulgaria.com/vleonkev


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