How to print all elements of 2-dimensional set created here?
int i, j, n;
set< set<int> > st;
set< set<int> > ::iterator it;
for(i=0;i<5;i++)
{
set<int>row;
for(j=0;j<5;j++)
{
cin>>n;
row.insert(n);
}
st.insert(row);
}
Aucun commentaire:
Enregistrer un commentaire