Dear Dawood,
> can anybody let me know, why the code below is not running.
That's probabely occuring as there is no conversion from char to
std::string. And thus, nor is there an assignment operator. You
are using the assignment operator in the following line:
> string p = ch;
There is, however, a conversion from char* to std::string, and
you may want to suit from it like this:
string p = &ch;
But I do not recommend it. It would be nicer to explain your
concrete problem more, so that we can help you more!
Regards,
--Hossein
--
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
|