If I am given a string say "helloworld" , how do I convert it into a list say l which is ["h","e","l","l","o","w","o","r","l","d"]
1) Create a list of characters
2) Iterate over each letter of your string
3) For each letter, append that letter to your list
Well, no conversion is required. A string is already a list of characters.
If you mean a std::list and a std::string, something like
std::list<char> newList(theString.begin(), theString.end();
does it.
But I suspect you don't mean a std::list. Do you?