Data Mapping (cusom index numbers)


c++ has function allows create array custom indexes. example standard array (index on left):
0:<data> 1:<data> 2:<data> ect.

a map of data this:
<any index number>:<data> <any index number>:<data> ect.


i know function in c++ looked through arduino libraries , find map function condenses range of values. have never used c++ , code looks quite daunting least :/

any idea how this?

thanks,

-sam

this not c++ function - referring standard containers
and maps, associative containers store elements formed combination of key value (generally used sort , uniquely identify elements) , mapped value (which stores content associated key).

code: [select]
typedef pair<const key, t> value_type;

for tiny arduino memory have at  key-value pair or hashmap

if not scared, have here

many options exist


Arduino Forum > Using Arduino > Programming Questions > Data Mapping (cusom index numbers)


arduino

Comments

Popular posts from this blog

Help needed for choosing soldering station

Error Message when accessing Adobe

Adafruit Huzzah with Arduino Uno