M
mark
The input via "cin" is string. right ?
(say string s; cin>>s1; the input accepted via cin is now stored in string s)
How to convert this into integer ?
say user inputs 99. How to covert this string (99) into integer value of 99.
(say string s; cin>>s1; the input accepted via cin is now stored in string s)
How to convert this into integer ?
say user inputs 99. How to covert this string (99) into integer value of 99.