I am doing a project now in school, and i really need help!.
its goes like this:
I have 1000 triangles in a file..did it already (its a struct)every triangle has 3 points and its binary catalog number.
I have space in memory only for 200.
in this file every 200 triangles sorted by Area,and now i have to marge all the triangles together so that finally in 1 file i will have all of them sorted by Area.
i have all the functions for Area and everthing that goes with it.
i just have no idea how to do the Marge.
i can use only 2 files for backup.
array : 1,2,3,4,2,5,8,9,4,6,8,10
and now i have only 4 spaces in memory .
i have to get in file
i can use 2 extra files for help.
Have any idea?