摘要: 定义(c语言) struct ListNode{ int val; struct ListNode *next; }ListNode; 切记,使用链表时一定要开辟空间。 struct ListNode *l1 = (struct ListNode *) malloc (sizeof(ListNode 阅读全文
posted @ 2024-07-13 16:00 璀丶璨星灬空 阅读(46) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> #include <string.h> #include <vector> #include <map> #include <set> using namespace std; void print(const vector 阅读全文
posted @ 2024-05-30 15:19 璀丶璨星灬空 阅读(10) 评论(0) 推荐(0)
摘要: gdb一些简单的命令 start //开始调试 n //一条一条执行 step/s //跟n不同的是,如果是函数,会进入函数 backtrace/bt //查看函数调用栈帧 info/i locals //查看当前栈帧局部变量 frame/f //选择栈帧,再查看局部变量 print/p //打印变 阅读全文
posted @ 2024-02-07 14:31 璀丶璨星灬空 阅读(96) 评论(0) 推荐(0)