Hi all.. i need a program code(C++ , C#, java etc...) to find a union ,intersection,mines of 2 sets... same as A={1,2,4,5} B={1,3,4,5} C={1,2,6,7} A U B=... A-B= .... A-C=..... etc... Amybody can help me?

Hi There I Will Help You But Let Me First Know All Kind Of Operations You Need In The Program Thank You

thx for helping.. i need a program that get 2 or 3 sets same as A and B and C and give us the A U B = A intersect B= ( i cant right intersect becouse my keyboard dont have ) A-B= C-B-A= this 4 thing.. i mean sets same as A={1,2,3,4..}

hi all... .......... A U B = .. javascript: .......... Code: JSH: ... var sum=new Array(); for ( var i=1 ; i < A.length ; i++ ) { sum[i]=A[i]; } for ( var j=1 ; j < B.length ; j++ ) { var flag=1; for ( var k=1 ; k < sum.length ; k++ ) { if ( B[j]==sum[k] ) { flag=0; break; } } if (flag==1) { sum[sum.length]=B[j]; } } return sum; //sum= A u B; ... ...Ok... ........