自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 Centos安装deb包

不得不说的Fedora和CentOS安装deb包方法【图文】_云系_51CTO博客

2021-10-07 17:31:40 6231

原创 使用qsort对字符串进行排序

排序字符串,按长度排序,如果长度一样则按字典顺序排序。需要注意的是cmpfun传入的两个参数的是指向数组元素的指针,即传入的a,b实际是char**类型。#include <stdio.h>#include <stdlib.h>#include <string.h>int cmpfun(const void *a,const void *b){ char *str1=*(char**)a; char *str2=*(char**)b;

2021-09-14 18:19:36 2822 2

原创 C语言读取带有逗号的数组

做小米笔试的时候遇到了要直接写输入读取带逗号的数组,差点没写出来#include <stdio.h>#include <stdlib.h>#include <string.h>void main(){ int n,len; int *arr; char tmp[10]; char str[1000]; scanf("%d", &n); //数组大小 arr = (int*)malloc(sizeof(int) * n); scanf

2021-09-01 21:03:52 1888

原创 01背包问题/多重背包问题

#include <stdio.h>#include <stdlib.h>void zobag() { int m, n; scanf("%d %d", &m, &n); int* weight = (int*)malloc(sizeof(int) * (n + 1)); int* value = (int*)malloc(sizeof(int) * (n + 1)); int** dp = (int**)malloc(sizeof(int*) * .

2021-08-23 16:05:35 112

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除