The exe isn't going to be created until you build successfully... which you won't do if you have errors.
I tried to build this and I got
tons of errors. It looks almost as if you coded all of this in one go without building until you wrote all of it. I don't recommend doing that... ever. You should do a build every so often just to make sure everything you wrote compiles okay. It prevents these errors from getting out of hand.
I have some free time so I'll go through these. Here are some errors in your code:
queue.h
Line 7:
enum boolean{false,true}; //defining boolean type
This is nonsense and is completely unnecessary. 'false' and 'true' are already defined as type 'bool'. You do not need to create your own 'boolean' type. Just use 'bool'.
elevator.h
Line 15: Same problem. Stop trying to recreate 'bool'. Just use bool.
Line 59: You are missing a closing brace for your class
list.h
Line 8:
friend class iterator<Type>;
- This is a good friend declaration, but you have not established that iterator is a template. So you need to forward declare your iterator class first. You can do this by adding this above your list class definition:
|
template<typename Type> class iterator;
|
Line 10, 11: You have a circular inclusion problem. list.h is including node.h... but node.h is including list.h. That doesn't work. One of those headers can't include the other one .. at least not until the classes in question are defined. Remove the "node.h" include from list.h and forward declare the node class instead
Line 13: stop redefining bool. Just use bool.
iterator.h
Line 17: You are missing a semicolon after your class definition
elevator.cpp
Line 30: Your comment ends with a '\' character, which makes the next line a comment as well. Remove that \ character.
Lines 32, 45: You are using the 'i' variable but you never define it. Throw a
int i;
just above line 32.
Line 45: Similar problem with 'j'. j is defined only with the for loop on line 39. If you want j to exist outside of that loop, you need to define it outside that loop. Remove the definition from that loop and move it outside the loop.
Line 52: You are missing a closing brace for your 'start' function
Lines 121, 124, 127: Same problem as 'j' above. 'i' is not defined here because it's only defined for the loop on line 118. Either move the definition for i outside that loop, or redefine it for each loop.
After that, I get a successful build but I didn't try running it.