In C language gets() is not asking for input on Sololearn. Works fine on my laptop though! What should I do to run it here? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

In C language gets() is not asking for input on Sololearn. Works fine on my laptop though! What should I do to run it here?

The programs appear to run for a sec though. Here a link to a basic gets() program. https://code.sololearn.com/cY1U4jjg7o0M/#cpp

15th Dec 2016, 7:28 PM
Caffeinated Gamer YT
Caffeinated Gamer YT - avatar
3 Answers
+ 1
// this is a comment on previous answer nopes. doesn't work. How can I take input from user at all?
15th Dec 2016, 7:47 PM
Caffeinated Gamer YT
Caffeinated Gamer YT - avatar
0
try this #include <iostream> using namespace std; int main() { char c; cout<<"Input Text "; cin.get(c); while (c!= '\n') { cout.put(c); cin.get(c); } }
15th Dec 2016, 7:43 PM
Mock
Mock - avatar
0
Don't worry, I guess solo learning do not have all feature like normal compiler .. its better to use ur laptop for practice ...
15th Dec 2016, 7:49 PM
Mock
Mock - avatar