hey I want to input a string that contain spaces such as "My name is Shankhs";
i initialized a string str;
then cin>>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
shankhs 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.