I want to show the vector<struct>, but the compiler says that a ad b were not declared in teh scope...I think they have the same type...but obviosly they must be differents types...
Change (48th line) for (vector<mystruct>::iterator iter = vec.begin();iter != vec.end;)
to for (vector<mystruct>::iterator iter = vec.begin();iter != vec.end();)
and 51st line: if( a.example or b.example == 0)
to if(example.a or example.a == 0)
a and b are members of some object, so that object goes first, as in here example.a