15 lines
218 B
C++
15 lines
218 B
C++
enum class OpType
|
|
{
|
|
Addition, Subtraction, Multiplication, Division, Modulo, Special
|
|
};
|
|
|
|
class Operation
|
|
{
|
|
public:
|
|
int a;
|
|
int b;
|
|
OpType type;
|
|
|
|
Operation(const OpType type, int a, int b = 0);
|
|
|
|
}; |