Fix the event constructor to be legal

This commit is contained in:
daniel 2017-04-10 21:21:41 -04:00
parent da393481e3
commit 2be1e257c3
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,11 @@
#include "event.h"
event::event(int num, int value, int setTime, int wire, wire *output) : evNum(num), evValue(value),
evTime(setTime), out(output) {}
event::event(int num, int value, int setTime, wire * output){
evNum = num;
evValue = value;
evTime = setTime;
out = output;
}
bool event::operator<(const event &e1) {
if(evTime == e1.evTime) {

View File

@ -1,9 +1,9 @@
#ifndef EVENT
#define EVENT
using namespace std;
#include "wire.h"
class event {
public:
event(int num, int value, int setTime, wire * output);