End Google Ads 201810 - BS.net 01 --> Hello.

I need to look after a number of elements in the periodic chemistry, with their values, eg:

Na = 23
O = 16
H = 1

etc.

I will have an input box, where someone could input a molecular structure using a formula, for example.

NaOH

My program would then total the individual atomic values for that structure, so the above would be 40.

My question is, should I store my periodic table like the following:

const int Na = 23const int O = 16
etcOr should I create an enum, or would there be a better method I have overlooked?

Thank you
Steve