#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 :
ne mw buat pa nezz....
maksud nya??
postingan na ya?
kalau postingan di atas buat program irisan..
Post a Comment