Questions tagged [enum]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
142 views

pset6/similarities more: what is the purpose of enumeration in the Operation class?

Currently tackling pset6 similarities more, and I'm trying to figure out what the purpose of enumeration is for in the Operation class. Here is the code taken from the helpers.py file: class ...
0
votes
1answer
28 views

enum in cs50 ide doesnt work

i'm a little bit confused why does it happening, but i can't iterate through enum variable in my cs50 ide. here is my code: enum coins { quarters = 25, dimes = 10, nickels = 5, pennies = 1 };...