Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
そこで、テキストベースのゲームを作ろうとしているのですが、コンソールから入力を取得する方法がApple製のSwiftに関するibookでわかりません。ここで見たいくつかの方法を試しましたが、それらの方法の使用方法がよくわかりませんでした。
Swift 標準ライブラリには入力ストリーム機能がないようです。ただし、まだオプションがあります。
import Darwin
scanf
getc
import Foundation
NSInputStream
NSScanner