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');
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?
when i enter reduction volume quarrel programmatically wouldn't have another impression array such
q, dire enter seems prompt me enter more. iscanf()slight both unparalleled double impression entries?
Comments
Post a Comment