-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexpression.hpp
32 lines (27 loc) · 1.25 KB
/
expression.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* expression.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yez-zain <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/12 16:06:17 by yez-zain #+# #+# */
/* Updated: 2021/11/17 23:23:44 by yez-zain ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef EXPRESSION_HPP
#define EXPRESSION_HPP
#include <string>
class expression {
private:
int degree;
double coefficient;
std::string variable;
public:
expression(int degree, double coefficient, const std::string &variable);
~expression() = default;
int get_degree() const;
double get_coefficient() const;
const std::string &get_variable() const;
};
#endif // EXPRESSION_HPP