C or operator can this be done somehow?
Asked By
30 points
N/A
Posted on - 08/01/2013
Hey guys,
Can c++ or operator be done? The code is:
if((a ||b)==0)return1;
return0;
boolCircle2::contains(Line2l){
Â
if((p1.distanceFrom(l.p1)||p1.distanceFrom(l.p2))<=r){
 return1;
 }
 return0;
}
Is the coding in the second piece the problem? Any help would be awesome.