Basic C++ Question... Associative array?

Oh and switch. Look at switch rather than the if else if ladder