#include <stdio.h>
int tocontinue();
int main(void) {
while(tocontinue())
{
;
}
return 0; }
int tocontinue() {
char yesorno;
puts("Do you want to continue?
(y/n)");
fflush(stdin); yesorno =
getchar(); fflush(stdin);
if (yesorno == 'N' || yesorno ==
'n')
return 0; else
return 1; }
이 프로그램 보시면 아시겠지만 입력한 값에 영향을 받아서 자꾸 한칸씩 아래로 내려가는데
뭐 좋은 방법이 없을까요.....
|