![]() |
.. (לתיקייה המכילה) | |
IMPORTANT (reminder)
|
As in HW1, make sure that you have the latest version of the T2 files before submission. read the FAQ clarifications carefully. |
Dry submission
| The requirement has been modified. please redownload the assignment. |
Clarification regarding "arrangement plane"
| please return MTM_PLANE_DOESNOT_MATCH if there exist a similar plane in the ARRANGEMENT (and not SYSTEM as mentioned). |
areEqual
|
the implementation of areEqual (from HW1) is already on T2. You can download, copy and, use it. you can still assume that you will be tested with "nice" numbers. |
setGetFirst and setGetNext
|
return a pointer to the element (void*) and not a copy to it. assume we will not take advantage of this in order to change internal elements and damage the uniqueness feature of the set. this should only save you from the burden of freeing intermediate elements. |
report distance
|
if you return MTM_NO_DISTANCE then don't print anything. for empty arrangement (arrangement with no planes) please don't print anything (do not count it). Example: (A 1, B 2, C 3 ) report distance amount(2): C 3 B 2 |
report planes
|
return MTM_NO_PLANES if there is no planes in the system. you need the x,y,z in order to use mtmPrintPlanesHeader(.....,direction). |
undefined references to `__assert_func'
| redownload the library for windows from: mtm/public/1213c/ex2/obj/Windows2 |
what to do if there exist an illegal plane
| in any function, please remember that the system doesn't permit insertion of an illegal plane at all. |
Set and the NULL key
| allow insertion of NULL key. |
Invalid iterator
|
the user couldn't assume anything about it, it's location, nor value. |
copy set
| copy every thing (including the iterator). |
libmtm1.a
|
don't use the library from HW1. |
mtmErrorCode
|
there is no success. you don't have to print anything when the function calls operate as needed. each ADT should define ADT_RESULT which includes, inter alia, ADT_SUCCESS. your "System" should match your ADT results to mtm results correctly. |
report direction
| for each arrangement, you have to print it's planes, in the same order as of the insertion to the arrangement (not the whole system/pace). |
arrangement plane
| return MTM_PLANE_OCCUPIED if the plane is occupied to ANY arrangement in the space. |
math.h
| you can use it, and compilee with the flag -lm |

