I'm having trouble deleting multiple items from a list.
I need to ask the user how many numbers they want to delete from the top of the list, then delete them.
This is what I have got:
bool LinkedList::deleteFirstN(int N)
{
nodePtr currPtr;
for(int i = 0; i < N; i++)
{
if(N > size())
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.