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.
私はここに状況があります
ユーザーからの入力を受け付けています
scanfを使用して、ユーザーが#キーを押すとすぐにscanfを終了できますか
これについて教えてください
いいえ、scanf()(またはデフォルトではstdin)は行指向であるため、完全な行を読み取る必要があります。
scanf()
「生の」キーごとの入力については、ncursesまたは同様のライブラリを調べてください。