How often do you use enumeration? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

How often do you use enumeration?

Almost Any task in c++ can be done without enumeration..How often do you use it in your code??

10th Sep 2018, 8:35 AM
Mensch
Mensch - avatar
3 Antworten
+ 4
If there is a need to enumerate something then I do it, but if there's no need for it, I don't. May I know why you are curious about how often enumeration is used?
10th Sep 2018, 10:02 AM
Ipang
+ 1
Enumeration is the right way to avoid magic numbers in the code.
10th Sep 2018, 10:10 AM
Sergey Ushakov
Sergey Ushakov - avatar
+ 1
i was just wondering since most topics in c++ are really stressed on but enumeration wasn't taken that importantly.
11th Sep 2018, 5:03 AM
Mensch
Mensch - avatar