#include
using namespace std;
bool less(const char* other, const char* str)
{
return strcmp(other,str)<0;
}
int main()
{
char s[4][100],s2[100],s3[100],s4[100];
cout << "input 4 strings:" << endl;
cin >> s[0] >> s[1] >> s[2] >> s[3];
char* p = s[0];
for(int i=1; i<4; i++)
if(less(s[i],p))
p = s[i];
cout << "the least string is " << p << endl;
return 0;
}