文字列に含まれる文字の文字列を入力、取得セット

#include <iostreamの> 
する#include <アルゴリズム> 
の#include <ストリング> 
の#include <ベクトル> 

int型のmain(){ 
    のstd ::文字列str。

    {(STD :: CIN >> STR)一方
        のstd ::ベクトル<チャー> V_C。
        v_c.clear(); 
        {(STR CONSTオート&P)のための
            IF(見つける(v_c.begin()、v_c.end()、P)== v_c.end()){ 
                v_c.push_back(P)。
            } 
        } 
        (CONSTオート&P:V_C)用{ 
            のstd :: COUT << P。
        } 
        のstd :: coutの<<はstd :: ENDL。
    } 

    0を返します。
}

  

おすすめ

転載: www.cnblogs.com/donggongdechen/p/11941757.html