It's a count of the last element in the list i think so it's to do with the number of entries/contacts not the number of data variables in each
Printable View
It's a count of the last element in the list i think so it's to do with the number of entries/contacts not the number of data variables in each
That's confusing. Is it a count of the number of items in the listQuote:
It's a count of the last element in the list
or is it the index of the last element in the list.
I'm not sure how to count the last element. Wouldn't that count always be one. There is one last element in the list.
its the index of the last element in the list
i may as well just leave it not gonna get this sorted i just keep going round in circles and wasting your time
Then its value starts at -1 before there are any elements in the list.
When there is only one element in the list, then the index to the last element is 0.
Is that how your code uses the top variable?
I think thats how its meant to i really havent a clue anymore
I agree. I think this assignment is past your current knowledge.Quote:
i may as well just leave it not gonna get this sorted i just keep going round in circles
Try working on one with only one class and a couple of methods to see how to create objects and call their methods.
Good luck
thanks for the help anyways, looks like i'm repeating the first year again probably for the best
Find a good book on beginning programming.