View Single Post
  #27 (permalink)  
Old 04-25-2008, 04:48 PM
raj reddy raj reddy is offline
Member
 
Join Date: Apr 2008
Posts: 30
raj reddy can only hope to improve
hi Eranga


the count variable should be incremented for every element comparison of the arrays

for eg

int count=0;

al1.(2)=al2.(2)
count++;

the above arrays were equal, so the count variable will be incremented to 1;

then go for next comparison

al1.(3)=al2.(3)
count++;

the count variable will be incremented to 2;


like that the count variable will be go on incrementing if the number of equal comparisons were there


what my problem is :


the count variable is not incrementing for the last comparison of the arrays


can u check in the code i have sent above
__________________
reddy
Reply With Quote