cout<<"Set B : {";
for(i=0;i<b;i++)
{
cout<<setB[i];
cout<<",";
}
cout<<" }"<<endl;
The code above is not printing right. It should print Set B : {1,2,3} but it prints an extra comma ==> Set B : {1,2,3,}
Any help would be appreciated. Thanks in advance!
See Question&Answers more detail:os