You are viewing a single comment's thread. Return to all comments →
{ l = b = h = 0; } Box(int a, int b, int c) { l = a; this->b = b; h = c; } Box(Box &B) { l = B.l; b = B.b; h = B.h; } int getLength() { return l; } int getBreadth() { return b; } int getHeight() { return h; } long long CalculateVolume() { return (long long)l*b*h; } bool operator<(Box &b) { if(l<b.l) return true; else if((this->b<b.b)&&(l == b.l)) return true; else if(h<b.h && (l == b.l)&&(this->b == b.b)) return true; return false; } friend ostream& operator<<(ostream&, Box&);
};
ostream& operator<<(ostream &out, Box &b1) { out<https://)
Seems like cookies are disabled on this browser, please enable them to open this website
Box It!
You are viewing a single comment's thread. Return to all comments →
 { out<https://)