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

Threaded View

  1. #1
    Join Date
    Jul 2007
    Posts
    273

    TreeMap of Vector

    Hello, my situation is this; I would like add element (integer that represent indexes in another Vector) in freqToIndex.Vector;
    Code:
    SortedMap <Integer, Vector< Integer> > freqToIndex= new TreeMap <   Integer, Vector< Integer > >();   
    void foo() {
      //_word is another vector
      this.freqToIndex.put( totalFreq, freqToIndex.previuosVector.add (_words.size() -1  );
    }
    I don't undertand how to access to the Vector inside the TreeMap. This is my problem at moment...
    Any help, please?
    thanks,
    Last edited by mickey0; August 21st, 2009 at 12:00 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