Is there any function which can compare first size and then inner elements.. I have used compare functions but that outputs the same.
Thankyou!
Code:
string A="100001",B="9";
if (A>B)
{
cout<<" ***A****";
}
else if (B>A)
{
cout<<" *****B*****";
}
else if (B==A)
{
cout<<"*******same******* ";
}
Comment