17 lines
232 B
C++
17 lines
232 B
C++
#pragma once
|
|
|
|
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);
|
|
|
|
}; |