i am trying to overload subtraction between two separate classes. Class Id is basically several strings such as the information of a voter database. Class Collect would be the collection of several class Id's in an array along with a total of Class Id's and the title of the collection (say "District 3")
My main statement would be along the lines of c1-id8;
I coded what i thought for sure was it. However apparently you cant if of type 'type' so i am stuck any help?
friend void operator-(Collect& c,const Id& b);
void operator-(Collect& c,const Id& b){
Id a;
for(int i=0;i<c.total;i++;){
if(c.id[i]=b){
c.m[i]=a;
c.total=c.total-1;}
return;}