"mark" <markstone23@yahoo.com> wrote in message
news:5e41994c.0406191858.6ed7b9f7@posting.google.com...
The input via "cin" is string. right ?
Wrong
(say string s; cin>>s1; the input accepted via cin is now stored in
string s)
Right
How to convert this into integer ?
say user inputs 99. How to covert this string (99) into integer value of
99.
#include <stdlib.h>
int n = atoi(s.c_str());
There are many other ways as well.
john
.