update code
This commit is contained in:
parent
40f135fddb
commit
5aaeeeeb51
@ -3,10 +3,10 @@ using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
string s1,s2;
|
||||
char s1[1000],s2[1000];
|
||||
cin>>s1>>s2;
|
||||
transform(s1.begin(),s1.end(),s1.begin(),::tolower);
|
||||
transform(s2.begin(),s2.end(),s2.begin(),::tolower);
|
||||
int c=s1.compare(s2);
|
||||
strlwr(s1);
|
||||
strlwr(s2);
|
||||
int c=strcmp(s1,s2);
|
||||
cout<<c;
|
||||
}
|
Loading…
Reference in New Issue
Block a user