// Code derived from Stroustrup's PPP2 book// § 3.4 Operations and operators// -beginning on p 68#include<iostream>#include<string>usingstd::cin;usingstd::cout;usingstd::string;// read and compare namesintmain(){cout<<"Please enter two names\n";stringfirst;stringsecond;cin>>first>>second;// read two stringsif(first==second)cout<<"that's the same name twice\n";if(first<second)cout<<first<<" is alphabetically before "<<second<<'\n';if(first>second)cout<<first<<" is alphabetically after "<<second<<'\n';}