Please Help in enum concept ,code error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
13th Jun 2017, 4:08 AM
Bahubali
Bahubali - avatar
3 Answers
+ 4
At line 7, d=num; is not valid statement as you cannot convert an integer value to enum. Instead, you can try this- d = wed; and then compile your code. But in that case, the num variable is of no use.
13th Jun 2017, 5:01 AM
Sachin Artani
Sachin Artani - avatar
+ 4
Here, I've made the changes I think you are looking for: https://code.sololearn.com/cDIDhHQ24KOi
13th Jun 2017, 5:55 AM
Zeke Williams
Zeke Williams - avatar
+ 3
thank u @ Zeke Williams
13th Jun 2017, 6:00 AM
Bahubali
Bahubali - avatar