You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
383 B
22 lines
383 B
2 years ago
|
//
|
||
|
// Created by 14727 on 2022/12/7.
|
||
|
//
|
||
|
|
||
|
#ifndef C2C4_RANGE_H
|
||
|
#define C2C4_RANGE_H
|
||
|
|
||
|
|
||
|
class Range {
|
||
|
public:
|
||
|
double a;
|
||
|
double b;
|
||
|
Range(double _a, double _b);
|
||
|
Range()= default;
|
||
|
Range operator + (const Range & r2) const;
|
||
|
Range operator - (const Range & r2) const;
|
||
|
Range operator * (const Range & r2) const;
|
||
|
bool hasZero() const;
|
||
|
};
|
||
|
|
||
|
#endif //C2C4_RANGE_H
|