+ 1

Anyone having C++ Switch program which accepts Char value by user for cases ?

Post in comments

13th Aug 2018, 4:03 AM
Shubham Kadam
Shubham Kadam - avatar
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
13th Aug 2018, 4:20 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 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...
13th Aug 2018, 4:14 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
happy to help
13th Aug 2018, 4:24 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
Shubham Kadam , if you would like to use string for comparison, have a look at below : https://code.sololearn.com/cTH0I0z0i19d/?ref=app
13th Aug 2018, 10:46 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
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
13th Aug 2018, 4:08 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
0
I am just checking anyone already having a code if yes then can give a link for that
13th Aug 2018, 4:11 AM
Shubham Kadam
Shubham Kadam - avatar
13th Aug 2018, 4:17 AM
Shubham Kadam
Shubham Kadam - avatar
0
Okay got it ! Thanks !
13th Aug 2018, 4:23 AM
Shubham Kadam
Shubham Kadam - avatar
0
Helpful ! thanks ..!
13th Aug 2018, 11:23 AM
Shubham Kadam
Shubham Kadam - avatar