I have this error when debugging called Debug Assertion Failed , does anyone know what that means? Im using Visual C++ 2008.
void merge (string alpha, string beta)
{
string temp;
string temp2;
stringstream insert(alpha);
stringstream insert2(beta); // Insert the string into a stream
ostream_iterator<string> output(cout, " ");
vector<string> words; //vector to hold words
vector<string> words2;
vector<string> results;
while (insert >> temp)
words.push_back(temp);
while (insert2 >> temp2)
words2.push_back(temp2);
merge(words.begin(), words.end(), words2.begin(), words2.end(), results.begin());
cout<<"Merge contains:";
copy(results.begin(), results.end(), output );
}