just a question this time
heres my prob
i've got an assignment for college that utilises a static data structure, specificaly a table structure
it will have a name, a credit limit and a refNumber(unique no.)
in my text book (which is written for pascal :( ) it says that when i delete a section of my table i should move the other data up to sort of fill in the gaps, but if its a static data structure, shouldn't the gaps stay and be filled when new data is added??
it also has a primitive operation called resetTable? which will reset the position back to the start of the table, i can understand why this is required at all
heres my structure for the table
struct table
{
int key;//unique number
char data[20];//name
int creditLimit;//as it says
};
int main(void)
{
table dataTable[MAX];//max is defined as 10
...
.
.
.
.
.
.
.
.
}and so on
does that look correct