User input in Sololearn code | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

User input in Sololearn code

When I create and run code in Sololearn editor (using C#) and I have to use some user input it have to be written in special window. Is it a possibility to display in this window query for user? For example I want to write text like "Write an integer" using Console.WriteLine

15th Aug 2017, 7:27 PM
Bartek
Bartek - avatar
4 Réponses
+ 3
You may use Console.WriteLine It can be followed by a Console.ReadLine But the input in your program need to be give before the start of the run in the special window. Because the playground is on a remote server. It is not possible to have communication between program and user during the run. Use visual studio community version to have a development enviroment on your own laptop.
15th Aug 2017, 7:42 PM
sneeze
sneeze - avatar
+ 3
@Bartek You cannot do windows application programming on sololearn. You do not have the memory, or the libraries you need to do it.
15th Aug 2017, 8:08 PM
Manual
Manual - avatar
+ 1
Thank you for the answer. I knows how to do this in the VS but I hoped that such communication is possible also in Sololearn.
15th Aug 2017, 7:47 PM
Bartek
Bartek - avatar
0
That's like, the custom input we give in codechef, hackerrank.
16th Aug 2017, 6:03 PM
Pranav Kushwaha
Pranav Kushwaha - avatar