-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModulus_Command.h
More file actions
41 lines (33 loc) · 817 Bytes
/
Copy pathModulus_Command.h
File metadata and controls
41 lines (33 loc) · 817 Bytes
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
33
34
35
36
37
38
39
40
41
// -*- C++ -*-
//==============================================================================
/**
* @file Modulus_Command.h
*
* Honor Pledge:
*
* I pledge that I have neither given nor received any help
* on this assignment.
*/
//==============================================================================
#ifndef _MODULUS_COMMAND_H_
#define _MODULUS_COMMAND_H_
#include "Binary_Command.h"
/**
* @class Add_Command
*
*
*/
class Modulus_Command: public Expr_Command
{
public:
// constructor
Modulus_Command (Stack <int> & s);
/**
* method that defines how to execute the modulus command to find the mod of two numbers on the postfix stack
*/
virtual void execute (void);
private:
// receiver
Stack <int> & s_;
};
#endif // !defined _MODULUS_COMMAND_H_