User Profile

Collapse

Profile Sidebar

Collapse
ibrahimijc
ibrahimijc
Last Activity: Mar 13 '16, 03:07 AM
Joined: Feb 10 '16
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ibrahimijc
    replied to Problem in comparing string of integers.
    in C
    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!
    See more | Go to post

    Leave a comment:


  • ibrahimijc
    started a topic Problem in comparing string of integers.
    in C

    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*******
    ...
    See more | Go to post
No activity results to display
Show More
Working...