week 2 clang-format

This commit is contained in:
2021-03-09 09:41:49 +08:00
parent ca161f0bee
commit 0d4f45d43c

View File

@@ -71,7 +71,8 @@ int DeleteNode(Node **phead, double x) {
}
/* if not the first node */
for (pnode=*phead, position=2; pnode->next; pnode=pnode->next, position++) {
for (pnode = *phead, position = 2; pnode->next;
pnode = pnode->next, position++) {
/* loop for pnode->next->data == x */
if (pnode->next->data == x) {
/* delete node */