parsing quarrel scanf c


i've carrying lot problems perplexing figure out scanf(). seems work glorious integers, being sincerely loyal disrespectful scanf("%d", &i).



where i am controlling issues controlling scanf() loops perplexing review input. example:



do {
printf("counter: %d: ", counter);
scanf("%c %c%d", &command, &prefix, &input);
} while (command != 'q');



  1. when i enter validly structured quarrel c p101, seems loop again before call me. seems occur even single:



    scanf("%c", &c) 


    in while loop. it'll loop twice before call me again. origination loop twice, i stop it?


  2. when i enter reduction volume quarrel programmatically wouldn't have another impression array such q, dire enter seems prompt me enter more. i scanf() slight both unparalleled double impression entries?




Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?