Re: "look up" table

From: Mike Wahler (mkwahler_at_mkwahler.net)
Date: 11/01/04


Date: Mon, 01 Nov 2004 00:56:08 GMT


"MJH" <mhodkin@comcast.net> wrote in message
news:bZ6dnfNR89rn4BjcRVn-3A@comcast.com...
> What is the best way to implement a "look-up" table in C/C++ code? That
is,
> I have a header column of values, and a header row of values, and the
> intersection of a value in the header row and a value in the header column
> determines a data value , e.g. like a spread***. I can't use an
equation
> to relate these because there is no mathematical relation between them.

Check out std::map

-Mike