I have a situation here
I take data from the user
using scanf, I can complete the scan as soon as the user presses the # key
please enlighten me on this
No, scanf() (or rather stdin, by default) is line-oriented, so it needs to read the full line.
scanf()
Check out ncurses or similar libraries for raw key-entry keys.
Source: https://habr.com/ru/post/1300849/More articles:Identifying an Effective Configuration File - .netselect records that are repeated twice! - sqlRuby / Glibc coredump (double loose or damage) - multithreadingLaTeX \ cite gives [?] - latexXML in C ++ Builder 6 - c ++When to use objc_memmove_collectable directly in Objective-C code? - garbage-collectionHow to split a list into a given number of subscriptions in python - pythonHow to display 2 views in 1 activity (Android)? - android(PHP) How to use crypt () with CRYPT_BLOWFISH? - phpAndroid Energy Tracking - optimizationAll Articles