Is it possible to create an array with a non-int (ie: C-String or char*) index?
A PHP Example of what i'm asking:
is it possible to do something like this in C++?PHP Code:$arrayName['myindex1'] = "My Text 1";
$arrayName['myindex2'] = "My Text 2";
Printable View
Is it possible to create an array with a non-int (ie: C-String or char*) index?
A PHP Example of what i'm asking:
is it possible to do something like this in C++?PHP Code:$arrayName['myindex1'] = "My Text 1";
$arrayName['myindex2'] = "My Text 2";
Yes. Take a look at the Standard Library map template.
Thanks. I'll look into it