I want to store 256*256 entries in a 2D array. I am doing like this:
struct Data
{
int Serial_Number;
int NextIndex;
} ;
struct Data Index[256][256];
Data obj1;
obj1.Serial_Number=1;
obj1.NextIndex=5;
Index[3][240]=obj1;
Now once I have stored all these values then How will I retrieve each value from an array element?
Like I want to retrieve a value stored at Index[3][240].
Secondly, Is this approach faster than unordered_map?
Index[3][240]=obj1;??? I mean are you trying to store a struct obj in intstruct Date Index[256][256]?