Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show function args at flowchart?

Tags:

flowchart

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)?

like image 914
Dragon Avatar asked Jul 09 '26 21:07

Dragon


1 Answers

Found the variant of mentioning args within separate block that is connected with begin block by dot line. Like this:

enter image description here

like image 139
Dragon Avatar answered Jul 18 '26 01:07

Dragon



Donate For Us

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