Alright so I have a problem with EventQueue and Event. In Event my second constructor gets an error saying expected initializer. If anyone can point me in the right direction to what is wrong that would be great.
Now if i comment that out i get an error with EventQueue when I call the functions in my mainEvent. For example the line eq.enQueue(e) and when i firts decalre the variable eq gets errors saying undefined reference.Anyone know why? Thank you for your help before.

Recommended Answers

All 3 Replies

In Event my second constructor gets an error saying expected initializer.

Would that be this code?

Event::Event(int a, int b)                                                                                                                                          Event::Event(int a, int b)
{
    ArrivalTime = a;
    wait = b;
}

Looks like it says Event::Event(int a, int b) twice.

where did you find that? mine only says it once

nevermind found that. wow that was really silly. that fixed that problem. now i just have the undefined refrences to my EventQueues

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.