+ 1
Anyone having C++ Switch program which accepts Char value by user for cases ?
Post in comments
9 Respuestas
+ 1
great... your case contain sun .... it's not character.its string... string cannot be compared directly.. either you keep case as 's' or use enum
+ 1
if you do it on your own, it will help you more compared to directly getting it from others...if you just want to complete your task, it's your choice... but I would not recommend it as a learner...
+ 1
happy to help
+ 1
Shubham Kadam , if you would like to use string for comparison, have a look at below :
https://code.sololearn.com/cTH0I0z0i19d/?ref=app
0
Shubham Kadam , this is question answer section.. please don't expect people to code for you entirely... do share your code and let us know where you are confused or stuck... doing it yourself will help you to put your learning into implementation
0
I am just checking anyone already having a code if yes then can give a link for that
0
https://code.sololearn.com/cy09cgqcnT0E/?ref=app
this is my code.
0
Okay got it !
Thanks !
0
Helpful ! thanks ..!