• Cursussen
  • Code Compiler
  • Discussiëren
  • Prijzen
  • Teams
Menu
0

How can I read input from keyboard with Swift 4?

It's not in the Swift course. I tried this way, but... Gives this error. I don't know if it's only for Mac and IOS development. https://code.sololearn.com/cdJ4o028L89e/?ref=app

swiftinput
11th Feb 2021, 9:23 PM
ChronoRevers
ChronoRevers - avatar
1 Antwoord
+ 6
var message = readLine()! print(message) https://www.sololearn.com/Discuss/1457999/?ref=app https://www.sololearn.com/Discuss/2493372/?ref=app
12th Feb 2021, 1:00 AM
Simba
Simba - avatar

Heb je vaak vragen zoals deze?

Leer efficiënter, gratis:

  • Inleiding tot Python

    7,1 miljoen leerlingen

  • Inleiding tot Java

    4,7 miljoen leerlingen

  • Inleiding tot C

    1,5 miljoen leerlingen

  • Inleiding tot HTML

    7,5 miljoen leerlingen

Bekijk alle cursussen
Populair vandaag
How many time I can use sololearn trial mode?
2 Votes
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Did sololearn helped you to get easier a job?
1 Votes
Sololearn course
1 Votes
solo learn program issue - iPhone?
1 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
Bug sur le deuxième cours de python
1 Votes
I am learning javascript intrmdt but when I play a code challenge. The app is givin me comlecated questions with less time.why?
0 Votes