以下代码在Ubuntu14.10下实现
/*------------------------- filename is demo.cpp --------------------------*/ #include <iostream> using namespace std; int main(){ string str1="abcde"; string str2="bdewqf"; if(str1<str2) cout<<str1<<endl; else cout<<str2<<endl; }
时间: 2024-11-17 11:34:40