I was just testing some code and found a SubsetElementInsert like this :
I found That 1 is the position where we want to insert an element in subset. So what is the difference in behaviour between if I put my subset like this :SubsetDestroy(zDim , zView );
SubsetCreate(zDim, zView );
SubsetElementInsert ( zDim , zView ,'Elem 1', 1 );
SubsetElementInsert ( zDim , zView ,'Elem 2', 1 );
SubsetElementInsert ( zDim , zView ,'Elem 3', 1 );
Why Are we inserting all the elements on the same position ? woudnt inserting all the elements in the same position erase the last inserted value so we will end up with only Elemnt3 ? and what will happend if we insert them in different position ? When should we use the first case and when should we use the second case ?SubsetDestroy(zDim , zView );
SubsetCreate(zDim, zView );
SubsetElementInsert ( zDim , zView ,'Elem 1', 1 );
SubsetElementInsert ( zDim , zView ,'Elem 2', 2 );
SubsetElementInsert ( zDim , zView ,'Elem 3', 3 );
Thank you