Examples of Programs Sliced 2 pieces set whereThe Intersection of these two elements as much as 3 Pieces

#include < iostream >
#include < algorithm >
#include< iterator>

using namespace std;

int main()
{
int D[]={5,6,7,8,9};
int E[]={1,2,3,4,5,6,7};

set_intersection(D,D+(sizeof(D)/sizeof(D[0])),
E,E+(sizeof(E)/sizeof(E[0])),

ostream_iterator< int>

(cout," "));

cout<<endl;

return 0;

}

Hasilnya:5,6,7


2 komentar :

Rimba_GanzzZ said...

ne mw buat pa nezz....

atnes said...

maksud nya??

postingan na ya?
kalau postingan di atas buat program irisan..

Post a Comment