The following is like reverse-engineering for code understanding. So here is the function:
void deleteTask(TaskPtr& head, const char* fullName)
{
TaskPtr current, nodeToDelete;
if(strcmp(head->fullName, fullName) == 0)
{
current = head;
head = head->next;
delete(current->address);
delete(current);
return;
}
for(current = head; current != NULL; current = current->next)
{
if(strcmp(current->next->fullName, fullName) == 0)
{
nodeToDelete = current->next;
current->next = nodeToDelete->next;
delete(nodeToDelete->address);
delete(nodeToDelete);
break;
}
}
}
How to show head and fullName args at flowchart (block diagram)?
Found the variant of mentioning args within separate block that is connected with begin block by dot line. Like this:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With