Files
ece-250/P1/VariableNode.h
2023-05-21 23:28:11 -04:00

26 lines
452 B
C++

#ifndef VARIABLENODE_H
#define VARIABLENODE_H
#include <iostream>
class VariableNode
{
public:
std::string getName();
double getValue();
void setValue(double value);
VariableNode *getNext();
void setNext(VariableNode *next);
VariableNode(std::string name, double value, VariableNode *next);
void DestroyAll();
private:
std::string name;
double value;
VariableNode *next;
};
#endif