gpt4 book ai didi

flowchart - 如何在流程图中显示函数参数?

转载 作者:行者123 更新时间:2023-12-04 02:08:59 25 4
gpt4 key购买 nike

下面是代码理解的逆向工程。所以这里是函数:

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;
}
}
}

如何在流程图(框图)中显示 headfullName 参数?

最佳答案

发现在单独的 block 中提及 args 的变体,该 block 通过点线与 begin block 连接。像这样:

enter image description here

关于flowchart - 如何在流程图中显示函数参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20761677/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com