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.
Printable View
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.
see the faq : http://www.codeguru.com/forum/showth...hreadid=231046
You may also want to take a look at std::map
Code:std::map< int, std::map< int, int > > someMap;