x无处不在
码龄4年
关注
提问 私信
  • 博客:5,391
    问答:299
    5,690
    总访问量
  • 23
    原创
  • 1,274,884
    排名
  • 1
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:北京市
  • 加入CSDN时间: 2020-11-16
博客简介:

zruillong的博客

查看详细资料
个人成就
  • 获得5次点赞
  • 内容获得5次评论
  • 获得11次收藏
  • 代码片获得115次分享
创作历程
  • 2篇
    2023年
  • 2篇
    2022年
  • 9篇
    2021年
  • 10篇
    2020年
成就勋章
TA的专栏
  • 笔记
    18篇
创作活动更多

如何做好一份技术文档?

无论你是技术大神还是初涉此领域的新手,都欢迎分享你的宝贵经验、独到见解与创新方法,为技术传播之路点亮明灯!

182人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

链表的基本操作

【代码】链表的基本操作。
原创
发布博客 2023.10.15 ·
61 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

链表基本操作

【代码】链表基本操作。
原创
发布博客 2023.10.07 ·
57 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

洛谷P2802 回家

y总算法
原创
发布博客 2022.11.19 ·
344 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

排列组合bfs

bfs
原创
发布博客 2022.10.23 ·
285 阅读 ·
0 点赞 ·
2 评论 ·
0 收藏

怎么插入一条订单表向订单详情插入多条数据呢,可以用触发器,可是订单详情表里面的数据从何而来呢?就只是单纯的MySQL数据库设计 与JAVA没关系,

发布问题 2022.07.08 ·
2 回答

c++类的定义与声明 运算符重载

发布问题 2021.06.22 ·
1 回答

c++继承,给子类写构造函数,会报父类无默认构造函数,这个对子类写构造函数有啥影响啊

发布问题 2021.06.17 ·
1 回答

链栈的基本操作

#include<iostream>using namespace std;typedef struct Node{ int data; struct Node *next;}LinkstackNode, *Linkstack;void Init(LinkstackNode *S){ S = new LinkstackNode; S->next = NULL;}bool Push(Linkstack S, int x){//头插法 LinkstackNode *t
原创
发布博客 2021.04.22 ·
70 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

一元多项式的加法

#include<iostream>using namespace std;typedef struct Polynode{ int coef; int exp; struct Polynode *next;}Polynode, *Polylist;Polylist create(){ Polynode *s, *rear, *head; head = (Polynode*)malloc(sizeof(Polynode)); rear = head; int a, b;
原创
发布博客 2021.04.14 ·
80 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

单循环链表和合并两个单循环链表(尾指针和头指针)

#include<iostream>using namespace std;typedef struct circular{ int data; struct circular *next, *rear;}Circular, *Linklist;void initclist(Linklist *CL){ *CL = new Circular; (*CL)->next = NULL;}void inpclist(Linklist CL){ Circular *s;
原创
发布博客 2021.04.13 ·
662 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

合并两个有序的单链表

不允许额外申请结点空间可将LC = LA#include<iostream>using namespace std;typedef struct Node{ int data; struct Node *next;}Node, *Linklist;void Init(Linklist *L){ *L = new Node; (*L)->next = NULL;}void fromend(Linklist L){ Node *r, *s; int a;.
原创
发布博客 2021.04.09 ·
89 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

链表的基本操作

#include<iostream>using namespace std;typedef struct Node{ int data; struct Node *next;}Node, *Linklist;void Initlist(Linklist *L){ *L = (Linklist)malloc(sizeof(Node)); (*L)->next = NULL;}void fromhead(Linklist L){ Node *s; int a;
原创
发布博客 2021.04.07 ·
58 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

链表的初始化 查找数据

#include<iostream>using namespace std;typedef struct Node{ int data; struct Node *next;}Node, *Linklist;void Initlist(Linklist *L){ *L = (Linklist)malloc(sizeof(Node));//*L为头结点,L为头指针 (*L)->next = NULL;}void fromhead(Linklist L){ Nod
原创
发布博客 2021.04.06 ·
80 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

数据结构顺序表的基本操作,查询、插入、删除

#include<stdio.h>#define MAX 100#define type inttypedef struct{ type elem[MAX]; int last;}Seqlist;void init(Seqlist *L){ L->last = -1;}void input(Seqlist *L){ printf("输入数据 -1结束
"); int n, i; i = 0; scanf_s("%d", &n); while(
原创
发布博客 2021.03.31 ·
114 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

线性表的插入一个数字

#include<stdio.h>#define MAXSIZE 100#define type int typedef struct{ type elem[MAXSIZE]; int last;}Seqlist;void inilist(Seqlist *L){ L->last = -1;//输入-1停止}void inplist(Seqlist *L){ int i = 0, n; printf("输入数据,-1结束:"); scanf("%d", &a
原创
发布博客 2021.03.17 ·
409 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

给定n,c语言输出菱形

//包含标准输入输出函数#include <stdio.h>//定义main函数int main(){ //请在此添加‘输出菱形’的代码 /*****************Begin******************/ int i, j, k, a; scanf("%d", &a); for(i = 1;i <= a;i++) { for(j = 1; j <= a - i; j++)
原创
发布博客 2021.02.04 ·
787 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

第几天

统计这天是那一年的第几天#include<stdio.h>int f(int year){ return (year % 4 == 0 && year % 100 != 0) || year % 400 == 0;}int main(){ int year, month, day, flag = 0, sum = 0; scanf("%d/%d/%d", &year, &month, &day); flag = f(year); s
原创
发布博客 2020.12.22 ·
68 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

每个元素循环右移

要求编写程序,将给定n×n方阵中的每个元素循环向右移m个位置,即将第0、1、⋯、n−1列变换为第n−m、n−m+1、⋯、n−1、0、1、⋯、n−m−1列输入第一行给出两个正整数m和n(1≤n≤6)。接下来一共n行,每行n个整数,表示一个n阶的方阵。输出格式:按照输入格式输出移动后的方阵:即输出n行,每行n个整数,每个整数后输出一个空格。输入2 31 2 34 5 67 8 9 输出2 3 1 5 6 4 8 9 7 #include<stdio.h>#defin
原创
发布博客 2020.12.22 ·
222 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

2020-12-21

#include <stdio.h>int main(){ printf("输入一行字符:
"); char ch; int i,count=0,word=0; while((ch=getchar())!='
') if(ch==' ') word=0; else if(word==0) { word=1; count++;
原创
发布博客 2020.12.21 ·
79 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

2020-12-21

寻找一维数组第二大的数据#include<stdio.h>int main(){ int a[10] = {1412, 112, 34, 51, 17, 28, 10, 42, 131,3242}, i, max1, max2; max1 = a[0]; max2 = a[0]; for(i = 1; i < 10; i++) if(max1 < a[i]) max1 = a[i]; for(i = 1; i < 10; i++) { if(a[
原创
发布博客 2020.12.21 ·
72 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多