This shows you the differences between two versions of the page.
queues [2015/12/23 17:30] hutch [Requirements] |
queues [2015/12/23 17:34] (current) hutch |
||
---|---|---|---|
Line 133: | Line 133: | ||
I have provided the source code for your ".h" file and part of the code for your ".c" file. As I said before, you are not required to implement the queue as I have shown here. However, you must implement all of the functions that are contained in the ".h" file. | I have provided the source code for your ".h" file and part of the code for your ".c" file. As I said before, you are not required to implement the queue as I have shown here. However, you must implement all of the functions that are contained in the ".h" file. | ||
- | <code c> | + | <file c queue.h> |
/* | /* | ||
Line 200: | Line 200: | ||
#endif /* QUEUE_H_ */ | #endif /* QUEUE_H_ */ | ||
- | </code> | + | </file> |
------------- | ------------- | ||
- | <code C> | + | <file C queue.c> |
/* | /* | ||
Line 229: | Line 229: | ||
} | } | ||
- | </code> | + | </file> |
---- | ---- | ||
Line 239: | Line 239: | ||
- If your queue fails this test, it means that your queue_runTest() code is not very thorough. As you fix your queue code, update your queue_runTest() function so that it more fully tests your queue. | - If your queue fails this test, it means that your queue_runTest() code is not very thorough. As you fix your queue code, update your queue_runTest() function so that it more fully tests your queue. | ||
- If your queue fails the more thorough test code that I provide, it is your responsibility to add code to your queue_runTest() code until it detects the bug. | - If your queue fails the more thorough test code that I provide, it is your responsibility to add code to your queue_runTest() code until it detects the bug. | ||
- | |||
- | Common Bugs: | ||
- | |||
<code C> | <code C> |