Click here to Skip to main content
14,243,763 members

C / C++ / MFC

 
Questiongetchar / putchar - how does it really works ? Pin
Vaclav_15-Jun-19 6:49
memberVaclav_15-Jun-19 6:49 
AnswerRe: getchar / putchar - how does it really works ? Pin
Richard MacCutchan15-Jun-19 7:03
protectorRichard MacCutchan15-Jun-19 7:03 
GeneralRe: getchar / putchar - how does it really works ? Pin
Vaclav_15-Jun-19 8:34
memberVaclav_15-Jun-19 8:34 
GeneralRe: getchar / putchar - how does it really works ? Pin
k505415-Jun-19 9:07
memberk505415-Jun-19 9:07 
GeneralRe: getchar / putchar - how does it really works ? Pin
Richard MacCutchan16-Jun-19 3:02
protectorRichard MacCutchan16-Jun-19 3:02 
GeneralRe: getchar / putchar - how does it really works ? Pin
leon de boer16-Jun-19 5:43
memberleon de boer16-Jun-19 5:43 
GeneralRe: getchar / putchar - how does it really works ? Pin
Richard MacCutchan16-Jun-19 5:48
protectorRichard MacCutchan16-Jun-19 5:48 
GeneralRe: getchar / putchar - how does it really works ? Pin
Stefan_Lang16-Jun-19 21:29
memberStefan_Lang16-Jun-19 21:29 
Richard MacCutchan wrote:
the system does not present them until after the enter key was pressed.

Not quite true, or at least not complete: if there is something in the input buffer already, getchar will immediately return with the next char it finds in that buffer. It will only wait if the input buffer is empty. AFAIK this is not dependend on the OS.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

GeneralRe: getchar / putchar - how does it really works ? Pin
Richard MacCutchan16-Jun-19 21:48
protectorRichard MacCutchan16-Jun-19 21:48 
GeneralRe: getchar / putchar - how does it really works ? Pin
leon de boer17-Jun-19 2:43
memberleon de boer17-Jun-19 2:43 
GeneralRe: getchar / putchar - how does it really works ? Pin
Stefan_Lang18-Jun-19 5:13
memberStefan_Lang18-Jun-19 5:13 
QuestionChange Icon Pin
JM225113-Jun-19 18:12
memberJM225113-Jun-19 18:12 
AnswerRe: Change Icon Pin
Richard MacCutchan13-Jun-19 21:32
protectorRichard MacCutchan13-Jun-19 21:32 
QuestionWM_MOUSEWHEEL message and the Touchpad : SOLVED thanks to Randor Pin
Richard MacCutchan13-Jun-19 4:28
protectorRichard MacCutchan13-Jun-19 4:28 
AnswerRe: WM_MOUSEWHEEL message and the Touchpad Pin
Gerry Schmitz13-Jun-19 9:26
mveGerry Schmitz13-Jun-19 9:26 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan13-Jun-19 21:19
protectorRichard MacCutchan13-Jun-19 21:19 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan14-Jun-19 1:04
protectorRichard MacCutchan14-Jun-19 1:04 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Gerry Schmitz15-Jun-19 5:36
mveGerry Schmitz15-Jun-19 5:36 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan15-Jun-19 6:58
protectorRichard MacCutchan15-Jun-19 6:58 
QuestionRe: WM_MOUSEWHEEL message and the Touchpad Pin
David Crow13-Jun-19 10:45
memberDavid Crow13-Jun-19 10:45 
AnswerRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan13-Jun-19 21:20
protectorRichard MacCutchan13-Jun-19 21:20 
AnswerRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan14-Jun-19 1:03
protectorRichard MacCutchan14-Jun-19 1:03 
AnswerRe: WM_MOUSEWHEEL message and the Touchpad Pin
Randor 14-Jun-19 0:31
professional Randor 14-Jun-19 0:31 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan14-Jun-19 0:55
protectorRichard MacCutchan14-Jun-19 0:55 
PraiseRe: WM_MOUSEWHEEL message and the Touchpad Pin
Randor 14-Jun-19 2:00
professional Randor 14-Jun-19 2:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.