1 Star 0 Fork 0

Wong How/Culer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.culer 674 Bytes
一键复制 编辑 原始数据 按行查看 历史
namespace a
namespace b
namespace c {}
struct listnode
void* varptr;
struct listnode* next;
;
void list_push_front(struct listnode head, void* ptr)
struct listnode newfirst = {varptr: ptr,
next: head.next};
struct listnode* fst = malloc(sizeof(struct listnode));
*fst = newfirst;
head.next = fst;
void list_push_back(struct listnode head, void* ptr)
struct listnode current = head;
while (current.next != NULL)
current = *(current.next);
struct listnode newlast = {varptr: ptr, next: NULL};
struct listnode* lst = malloc(sizeof(struct listnode));
*lst = newlast;
current.next = lst;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/holarus/culer.git
git@gitee.com:holarus/culer.git
holarus
culer
Culer
main

搜索帮助