CppPrimer_ex5_19
#include <iostream>
#include <vector>
using namespace std;
int main() {
string s1, s2, resp;
do{
cout << "Please enter two string!";
cin>>s1>>s2;
cout << (s1<s2?s1:s2)
<< endl
<< "More? Enter yes or no.";
cin>>resp;
}while(!resp.empty() && resp[0]!='n');
return 0;
}INFO