Determine the number of words in a string

        if (!isspace(*string) && !check) { words++; check = true; }
        if (isspace(*string) && check) { check = false; }
posted @ 2021-05-24 20:27  wcl王成龙  阅读(36)  评论(0)    收藏  举报