I am tryng to display a random vector string. The vector object gets randomized, but the problem is that it only displays the FIRST letter of the string! Any ideas?
vector<string> horses;
vector<string>::const_iterator iter;
horses.push_back("Red Rum");
horses.push_back("Sampson");
horses.push_back("Seabiscuit");
horses.push_back("Man O' War");
random_shuffle(horses.begin(), horses.end());
iter = horses.begin();
cout<<"The Horses are off!" <<endl;
wait(1);
cout<<"The Horses race out of the gate!"<<endl;
wait(1);
cout<< *iter->begin() <<" edges in front, not far from the finish!"<<endl;
wait(1);
cout<< *iter->begin() <<" is in the lead!"<<endl;
wait(1);
cout<<"All the Horses are neck and neck!"<<endl<<endl;
wait(4);