How can I store four parameters with a value in c++ and be able to recall it.
For example I have parameters u , k , i , childEdge and a value called val.
I want to store them like this: (5,4,6,1) = 42.
And be able to access them with something like this : int answer = find(5,4,6,1 ) so answer would be 42
I was using a 4D array, but for large inputs it doesn't seem to work well in c++