• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            心如止水
            Je n'ai pas le temps
            posts - 400,comments - 130,trackbacks - 0
            遍歷,找到所有單詞,插入到set中即可。
            以下是我的代碼:
            #include<iostream>
            #include
            <string>
            #include
            <set>
            #include
            <cstdio>
            #include
            <cctype>
            using namespace std;

            int main()
            {
                
            /*
                freopen("data.in","r",stdin);
                freopen("data.out","w",stdout);
                //
            */

                
            string s;
                
            char ch;
                
            while((ch=getchar())!=EOF)
                    s
            +=tolower(ch);

                
            set<string> dictionary;
                
            for(int i=0;i<s.size();i++)
                {
                    
            string t;
                    
            while(i<s.size() && isalpha(s[i]))
                    {
                        t
            +=s[i];
                        i
            ++;
                    }
                    
            if(!t.empty())
                        dictionary.insert(t);
                }

                
            for(set<string>::iterator i=dictionary.begin();i!=dictionary.end();i++)
                    cout
            <<*i<<endl;

                
            return 0;
            }
            posted on 2011-04-07 19:18 lee1r 閱讀(411) 評論(0)  編輯 收藏 引用 所屬分類: 題目分類:字符串處理
            久久久久久青草大香综合精品| 狠狠色丁香久久婷婷综合图片| 天天躁日日躁狠狠久久| 77777亚洲午夜久久多喷| 久久亚洲私人国产精品vA | 久久WWW免费人成—看片| 久久亚洲精品无码播放| 日韩精品无码久久久久久| 成人a毛片久久免费播放| 久久大香萑太香蕉av| 久久精品国产精品国产精品污| 久久久久国产视频电影| 久久综合给久久狠狠97色| 精品久久久久国产免费| 精品国产VA久久久久久久冰| 香蕉99久久国产综合精品宅男自| 久久夜色精品国产噜噜噜亚洲AV| 久久久久久毛片免费看| 国产精品久久久久久| 久久久久亚洲av无码专区喷水 | 国产成人精品免费久久久久| 久久亚洲AV无码西西人体| 国产精品青草久久久久婷婷| 精品伊人久久大线蕉色首页| 精品久久久久久无码中文野结衣| 久久久国产精品亚洲一区| 久久精品国产亚洲αv忘忧草 | 久久久精品久久久久影院| 国产午夜电影久久| 久久久久亚洲AV无码专区体验| 久久人人爽人人人人片av| 欧美激情精品久久久久久久九九九 | 国产精品久久网| 久久人人爽人人爽人人片av高请 | 国产亚洲欧美精品久久久| 一本色综合网久久| 色欲av伊人久久大香线蕉影院| 久久久久亚洲av成人网人人软件 | 精品熟女少妇aⅴ免费久久| 国产亚洲色婷婷久久99精品91| 久久99国产精品二区不卡|