표준 입력으로 길이 1,000 이하의 문자열이 입력됩니다.


입력된 문자열에서 "the"의 개수를 출력하는 프로그램을 만드세요


단, 모든 문자가 소문자인 "the"만 찾으면 되며 "them", "there", "their" 등은 포함하지 않아야 합니다.



예 >>>>>>>>>>>

the grown-ups' response, this time, was to advise me to lay aside my drawings of boa constrictors, whether from the inside or the outside, and devote myself instead to geography, history, arithmetic, and grammar. That is why, at the age of six, I gave up what might have been a magnificent career as a painter. I had been disheartened by the failure of my Drawing Number One and my Drawing Number Two. Grown-ups never understand anything by themselves, and it is tiresome for children to be always and forever explaining things to the.


결과 >>>>>>>>>>

6




일단 'the'문자열부터 잘라내보고 생각해보장. 하고 코드를 짰으나 오십개가 넘는 예상치못한 결과가 튀어나옴.


이것저것 깨작깨작 거려보다가 결국 해설을 봄.


근데 strtok 으로 . , 를 잘라내라카고 있음.


나 지금도 이해못하고 있음.


the 가 아닌, ., 를 조져야 하는 이유가 뭐죠?