Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAlexander Vasilenko
3,342 PointsDo Swift have a function to understand input from keyboard, and implement it to variable? Like "cin" in C++ language?
Or scanf() in "C"
Coinnich c
7,512 PointsCoinnich c
7,512 PointsHey, typically, in Swift, you will use a user interface, such as a text field, to get input from users, and then access what they have written in that through its fields. But as far as i know there is no equivalent to "cin" or "scanf()" or Java's "Scanner sc = new Scanner(System.in)" etc.
Hope this helps.