字符串(string)(字符串相加)
#include<iostream> #include<cstring> using namespace std; int main() { int t; cin>>t; string a,b; while(t--) { cin>>a>>b; if(a+b>b+a) { cout<<">"<<endl; } else if(a+b<b+a) { cout<<"<"<<endl; } else { cout<<"="<<endl; } } return 0; }