CppPrimer_ex5_19

Run Settings
LanguageC++
Language Version
Run Command
#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; }
Editor Settings
Theme
Key bindings
Full width
Lines