c언어/활용편
c에서 공백포함 문자열 입력
감조자림
2022. 10. 8. 13:21
int word[100];
gets[word];
이렇게 하거나
scanf("%[^\n]s", word);
이렇게 하면 공백이 포함된 문자를 입력받을 수 있다.