尤克里里LK
尤克里里LK
全部文章
分类
C语言(59)
Java(3)
SSM项目(5)
力扣-刷题(2)
开发软件安装(1)
数据结构(24)
未归档(2)
经验贴(3)
面试题(1)
归档
标签
去牛客网
登录
/
注册
尤克里里LK的博客
现已保送至东北大学 人工智能方向硕士研究生。个人邮箱:liuke990205@163.com
全部文章
(共100篇)
数组:编写一个函数delet(char s[],char c)。函数功能:删除字符数组s中出现的与变量c相同的字符。
#include<stdio.h> #include<string.h> void delet(char s[],char c) { int i=0,j=0; char a[10]; while(s[i]!='\0') { if(s[i]!=c) { a...
2020-05-16
0
623
数组:输入n(n>=2)个整数,找出从小到大的第i个数。
#include<stdio.h> int main() { int n,i,j,temp,m; int a[10]; printf("输入n个整数,输出第i小的数\n"); scanf("%d %d",&n,&m); p...
2020-05-16
0
572
链表:前插法建立单链表。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatlist()...
2020-05-16
0
678
链表:利用单链表输入一个字符串,逆序输出。
#include<stdio.h> #include<stdlib.h> struct node{ char data; struct node *link; }*head; int main() { char ch; struct node *p; head=NU...
2020-05-16
0
598
链表:编写函数void reverse(LNode *h)。函数功能:利用原来的存储空间将链表逆置输出。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; void reverse(LNode...
2020-05-16
0
719
链表:编写一个函数void fun(LNode *A,LNode *B,LNode *&C)。函数功能:将两个递增有序的链表合并为一个递增有序的链表。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatlist(i...
2020-05-16
0
581
链表:编写一个函数int max(LNode *h)。函数功能:返回链表中的最大值。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatlist(i...
2020-05-16
0
576
链表:编写一个函数int count(LNode *h)。函数功能:统计单链表中结点的个数。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatlist(i...
2020-05-16
0
629
链表:编写一个函数int fun(LNode *h,int x)。函数功能:统计链表中数值为x的结点的个数。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatlist(i...
2020-05-16
0
636
链表:编写一个函数void insert(LNode *h,int x)。函数功能:在有序的单链表中插入一个值为x的结点。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatlist(i...
2020-05-16
0
464
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页