How did you manage to write this:
and yet you can't figure out how to copy a plain old struct into one spot in your array? Did you not see the amazing similarity between that bit of code and what you are trying to write? If you don't understand what you did there, I have to ask: did you even write this code?Code:for(incr=MAX2 -1;incr >set_pt;incr--) //this for loop will make room in the array for the new data insertion
{
local[incr] = local[incr-1];
local[incr].score=local[incr-1].score;
strcpy(local[incr].name,local[incr-1].name);
}