i) 有一些法典可重复使用:
printf("do you want to continue? Y/N: ");
keepplaying = getchar();
in the next my code is running it doesnt wait for input. i found out that getchar in the seconed time use as the charcter. im gussing this is due to some buffer the sdio has, so it save the last input which was "Y " or "N ".
我的问道是,如何在使用沙子之前绕过缓冲? 这将使我等待回答吗?