Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

accepting single string with space

$
0
0

could anyone tell about accepting a string with space,especially inside a for loop. i have tried getline,gets,but not getting desired output.

if i enter the string as: hey sum it is read as 2 inputs because of space in between.

explanation with a code is needed. thank you!


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>