添加VS Code C++开发配置文件,包括c_cpp_properties.json、launch.json、settings.json和tasks.json

This commit is contained in:
2025-07-20 22:31:52 +08:00
parent ff7758924f
commit 4f7a07025a
+11
View File
@@ -46,6 +46,16 @@ void add(List* pList, int value)
} }
} }
void print(List* pList)
{
Node *p;
for (p=pList->head; p; p=p->next)
{
printf("%d\t", p->value);
}
printf("\n");
}
int main() int main()
{ {
// 设置控制台编码为UTF-8 // 设置控制台编码为UTF-8
@@ -69,6 +79,7 @@ int main()
} }
} while (number!=-1); } while (number!=-1);
print(&list);
return 0; return 0;
} }