관리 메뉴

moozi

c언어버퍼비우기 본문

TIS_2019/응용sw2019_2기

c언어버퍼비우기

moozi 2019. 8. 30. 17:38

다음 중 한가지를 적용해보세요.

scanf에서 사용하는 string변수, c변수는 선언해주어야 합니다.

 

scanf("%s", string);

scanf("%c", &c);

 

scanf("%*c", c);

 

scanf(" %c", &c);


참고: https://plustag.tistory.com/1 

 

 

 

while(getchar()!='\n');

 

참고: https://saelly.tistory.com/411

'TIS_2019 > 응용sw2019_2기' 카테고리의 다른 글

단일 문자 입력 함수(getch, getche, getchar)  (0) 2019.09.02
C연습문제07  (0) 2019.09.02
c연습문제06  (0) 2019.08.30
c연습문제04풀이  (0) 2019.08.30
c연습문제05  (0) 2019.08.29
Comments