Hello,
since last time I got so good answers (thanks),
I've got a next question that is very confusing for me:
I've got a file called elementsTable.h, where I have two enums inside. One holds all elements of the periodic system of elements by their name. That functions as it should. The second enum should be the same, this time with the symbol name of the elements.
Anybody an idea why this is an error? And anyone an idea how to "fix" this?
since last time I got so good answers (thanks),
I've got a next question that is very confusing for me:
I've got a file called elementsTable.h, where I have two enums inside. One holds all elements of the periodic system of elements by their name. That functions as it should. The second enum should be the same, this time with the symbol name of the elements.
Code:
enum EElementsSymbol {
H = 1,
He,
Li,
Be,
B,
C, // Carbon, ERROR: Redefinition of enumerator 'C'
N,
O,
F,
Ne,
Na,
Mg,
Al,
Si,
// More symbol names
};
Anybody an idea why this is an error? And anyone an idea how to "fix" this?