hmm.. Im having trouble with that if statement..Code:for(string new_word; cin >> new_word, new_word!="Quit"; ) { const pair<WordIter, bool> &trace = words.insert(new_word); if (trace.second) input_order.push_back(trace.first); }
if(trace.second) what does this ask?
if pointing at trace.second switch to first to put new_word in trace.first?
Or am I lost?
thx in advance..
Luigi



LinkBack URL
About LinkBacks


