So I'm having trouble trying to turn a word into letters. I've seen other posts but they deal with a sentence and it only outputs the words only. What I want to know is how do they take a word (Ex: "word") and break it into individual letters, where I want to store them in a vector of string?
If it's not too much trouble, I would prefer without using pointers or "std:: " marks, since I am trying to avoid pointers and I'm using "using namespace std" all the time. Thanks!
In the example "word", it should output into:
and I will push them back into a vector of string where each vector element contains a letter.
Although, I must agree with EssGeEich--strings may already be iterated through, so this isn't useful. Also, you mentioned converting the string into broken down strings, that is why the line in the for loop is more complicated.