hey I want to input a string that contain spaces such as "My name is Shankhs";
i initialized a string str;
but str is not taking words after spaces as if spaces are acting as a delimiter...
i tried gets,getline but they does not seem to work for string!!!
So guys what should I do to make string take words after spaces???
(P.S. I have to work with string no char  or char * please)
Thanx for your concern