C or operator can this be done somehow?
Asked By
30 points
N/A
Posted on - 08/01/2013
![qa-featured](https://www.techyv.com/sites/default/users/superadmin/qa-featured-300x270.png)
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.
![](https://techyv.com/sites/default/2016/10/techpedia_logo.png)