Click to See Complete Forum and Search --> : 2-d vector


dc83
April 27th, 2003, 08:07 PM
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.

Philip Nicoletti
April 27th, 2003, 08:18 PM
see the faq : http://www.codeguru.com/forum/showthread.php?s=&threadid=231046

Manish Malik
April 27th, 2003, 09:37 PM
You may also want to take a look at std::map


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