classdevice& classdevice::operator+(double add) { double original; price = original; if(add>0) { price = price + add; } if(price < 50.0 && price > 1650.0) { price = original; } }
if(price < 50.0 && price > 1650.0)
price
or
double original; price = original;
double original = price;
<br /> double original;<br /> price = original;<br />
original
add
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)