+ 2

How to take input of string ?? Why gets is not working for header file <string.h> in c++ compiler of sololearn ?

In my class they thought that to take input of a string we should use gets () function .. but why its not working with this compiler ?

10th Dec 2017, 5:30 AM
Samarth H Chinivar
Samarth H Chinivar - avatar
6 odpowiedzi
+ 3
Plz show me by giving me a sample code
10th Dec 2017, 5:54 AM
Samarth H Chinivar
Samarth H Chinivar - avatar
+ 3
https://code.sololearn.com/csmdCwgpqioH/?ref=app This code is correct but prob is it can't take input of strings with space .. so modify this one plz ..
10th Dec 2017, 6:07 AM
Samarth H Chinivar
Samarth H Chinivar - avatar
+ 3
Awesome man !! thank u so much !!
10th Dec 2017, 6:36 AM
Samarth H Chinivar
Samarth H Chinivar - avatar