+ 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
3 Respuestas
+ 1
// this is a comment on previous answer
nopes. doesn't work. How can I take input from user at all?
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);
}
}
0
Don't worry, I guess solo learning do not have all feature like normal compiler ..
its better to use ur laptop for practice ...