📅  最后修改于: 2022-03-11 14:59:47.337000             🧑  作者: Mango
#ifndef ITEMTYPE_H
#define ITEMTYPE_H
#include
class ItemType {
private:
int value;
public:
enum Comparison;
ItemType(); //Default Constructor
Comparison compareTo(ItemType item); //Compare the value of item with the current object's value and return GREATER, LESS OR EQUAL.
int getValue() const; //Return the value instance variable
void initialize(int num); //Initializes the data member by variable num
};
#endif