0

Can I use an enum as an argument of a function?

26th Oct 2016, 1:31 AM
Julio Omar Vega Guerra
Julio Omar Vega Guerra - avatar
2 Respuestas
+ 3
Yes, u can Days day; enum Days { MONDAY, TUESDAY, WEDNESDAY } void setDay (Days d) { day = d; }
26th Oct 2016, 12:43 PM
FreakManMega
0
Tankyou, for answering, I alredy fixed my code, and It works =)
26th Oct 2016, 8:40 PM
Julio Omar Vega Guerra
Julio Omar Vega Guerra - avatar