Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how can I convert each and every element of string push into set in c++?

string st = "helloworld";
set<char> s(st.begin(),st.end())
 // now the s set is fill with each and every char of st string
 
PREVIOUS NEXT
Tagged: #I #convert #element #string #push #set
ADD COMMENT
Topic
Name
2+2 =