I am not sure why I am getting an error for this:
void create_list(const string & str_text, vector<char> & vec_text)
{
for (int i = 0; i < str_text.size(); i++)
{
if (is_alphabetic(str_text[i]) ==true)
{
vec_text[i] = str_text[i];
}
}
}
I am not sure how to place an element of a string inside a vector using loops.
Yep that was the problem Thank you