+ 1

Special Letter input

is it possible for "cin" to accept special letters (/.+-*...) as input ? (i tried and its return as 0) , and how do i use it to comparion ?

17th Mar 2018, 5:12 PM
SlightlyWind
SlightlyWind - avatar
4 Answers
+ 7
You can check my code: And you can learn how to do that. if you have any question tell me https://code.sololearn.com/cD4yd3Q49YOJ/?ref=app
17th Mar 2018, 5:21 PM
Baraa AB
Baraa AB - avatar
+ 2
that's a bit too much for me, i just started this like for 2-3 hours ago :)). Still, your answer will help me in the near feature. Thx for answering ;))
17th Mar 2018, 5:26 PM
SlightlyWind
SlightlyWind - avatar
+ 1
Oh i got it, use funcition 'char'. Yeah some one told me that but i thought its just shortcut for characters :))
18th Mar 2018, 4:03 AM
SlightlyWind
SlightlyWind - avatar
+ 1
ITS WORKED
18th Mar 2018, 4:14 AM
SlightlyWind
SlightlyWind - avatar