R
Roland groenvynck
I try to use STL to contruct two sets and make the unions of it , but
my program keeps running in a loop when the union is tried :
typedef set<int> TVSet;
void CPSetDlg::OnButton1()
{
TVSet V1, V2, V3;
V1.insert (1);
V1.insert (2);
V2.insert (1);
V2.insert (3);
set_union(V1.begin(),
V1.end() ,
V2.begin(),
V2.end(),
V3.begin()
);
}
Could someone help me?? thank you
my program keeps running in a loop when the union is tried :
typedef set<int> TVSet;
void CPSetDlg::OnButton1()
{
TVSet V1, V2, V3;
V1.insert (1);
V1.insert (2);
V2.insert (1);
V2.insert (3);
set_union(V1.begin(),
V1.end() ,
V2.begin(),
V2.end(),
V3.begin()
);
}
Could someone help me?? thank you