visual studio 2010 - print result in windows form applications in c# -


suppose have 2 arrays a[] , b[], array a[25] , b[25] both have 25 values, see following code:-

for(int i=0;i<25<i++) {      for(int j=0;j<25;j++)  {         if(a[i]==a[j])      {                        count++;      }      else           continue; } //print result of each comparison  } 

in above code comparing each value of a[] values of b[] , counting occurrences . not getting how show(print) occurrrences of each comparison in windows form applications

use textbox , set multiline , scrollable:

textbox1.multiline = true; textbox1.width = 150; textbox1.height = 80;   textbox1.scrollbars = scrollbars.vertical;  textbox1.text = "occurrences: " + count.tostring(); // print count 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -