• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

isspace(띄어쓰기명령어)

문자열입력받고, 문자,단어개수,열개수 출력하기

문자열을 입력하면 문자,단어,열의 개수를 출력해주는 프로그램이다. getchar()를 통해 문자열을 입력받으면 STOP(.) 마침표를 만날 때까지 무한루프를 돌게 된다. if (c == '\n') n_lines++; 줄바꿈을 만나게 되면 열의 개수를 +1해주고, if (isspace(c)) word_flag = true; 띄어쓰기를 만나게 되면 word_flag를 true로 바꿔준다. (띄어...

isspace(띄어쓰기명령어)isspace(띄어쓰기명령어)

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more