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

getting paragraph without using gets() function

$
0
0
  • This is my code...
  • This will executing infinte times...
  • can any help me to getting the paragraph without gets()

char str[100];int i=0; for(cin>>str[i];str[i]!='\n';) {++i; cin>>str[i]; }

  • If i use gets()function in cstring, iam getting the error like gets() function is out of scope..

Viewing all articles
Browse latest Browse all 39796

Trending Articles



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