weinan030416

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

10 2022 档案

只用一个头结点一个头指针的链表写法
摘要:#include<iostream> #include<stdlib.h> using namespace std; struct Node { int data; struct Node *next; }; int main() { int num,n; cin>>num; Node *head, 阅读全文

posted @ 2022-10-18 21:44 楠030416 阅读(19) 评论(0) 推荐(0) 编辑

链表实现
摘要:输入数字并输出的链表 #include<iostream> #include <stdlib.h> using namespace std; ​ struct Node { int data; struct Node*next; }; ​ int main() { int num; cin>>num 阅读全文

posted @ 2022-10-05 09:56 楠030416 阅读(18) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示