
C站水库
C站水库 顾名思义 指本人发布在优快云的水文的集合。
Ctrl AC
I'm sorry for everything, everything I've done.
展开
-
【C站水库】带头结点的单链表的操作
题目:代码:#include<bits/stdc++.h>#define ph print(head)using namespace std;struct node{ int val; node* next;};node* create(){ node *head,*tail,*temp; head=new node; head->next=NULL; tail=head; printf("请输入一串链表(以-1结尾):\n"); while(1){原创 2022-03-25 19:53:30 · 1149 阅读 · 0 评论 -
【C站水库】无头结点的单链表操作
【C站水库】------- 博主的灌水区(🤫嘘,别被审核发现了)今天写了一道题:代码:#include<iostream>#include<cstdio>#include<stdlib.h>using namespace std;struct node{ int val; node* next;};void printLink(node* head){ printf("现在的单链表是:\n"); while(head){ pri.原创 2022-03-21 17:45:16 · 1492 阅读 · 0 评论