place string in array c++ code example Example: how to put string in array c++ { string word; ArrayWithWords[d] = word; d++; }