Well I have used another method. And the thing which I was asking was that it is giving 9 > 10001 . which is not the desired result.
Thank You!
User Profile
Collapse
-
Problem in comparing string of integers.
Is there any function which can compare first size and then inner elements.. I have used compare functions but that outputs the same.
...Code:string A="100001",B="9"; if (A>B) { cout<<" ***A****"; } else if (B>A) { cout<<" *****B*****"; } else if (B==A) { cout<<"*******same*******
No activity results to display
Show More
Leave a comment: