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

Thread: 2-d vector

  1. #1
    Join Date
    Mar 2003
    Posts
    29

    2-d vector

    Whats the proper syntax for establishing a 2d vector? Also what is the sytax for storing vaules for (x,y) it has to be a 12x12 sixed vector. I have to use a vector otherwise id use an array.

  2. #2
    Join Date
    Aug 2000
    Location
    West Virginia
    Posts
    7,725

  3. #3
    Join Date
    Feb 2001
    Location
    teh INTARWEB
    Posts
    542
    You may also want to take a look at std::map

    Code:
    std::map< int, std::map< int, int > > someMap;

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