自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 资源 (1)
  • 收藏
  • 关注

原创 Git学习笔记

Git学习笔记关于mavenMaven是一个共享包软件,通过mvn命令可以建立不同的maven风格的项目,通常idea上面有模板关于Git诞生于Linux版本控制Git是一个分布式版本管理系统,一个项目的每个开发者的电脑上都有个完整的版本库git开始步骤 进入项目文件夹,git init创建空仓库,目录下增加了一个.git文件 Git add *(文件名),把文件添加到仓库 git commit -m “备注” git命令Git status查看被.

2021-11-15 11:34:37 805

原创 java编程思想学习笔记

前言这是学习java编程思想的读书笔记简介相比c++,java加入了虚拟机和垃圾回收机制要熟悉语言为什么这么设计一.对象的概念抽象将实际问题抽象为计算机运行的程序oop可以让我们根据问题来写程序,而不是根据计算机.把一个个问题参与者抽象成对象oop特征:1.万物皆对象2.程序是一组对象,通过消息传递来知道自己要做什么3.每个对象可以接受相同的消息4.每个对象有自己的存储空间接口(每个对象可以接受相同的消息),接受什么样的消息由类给出的'接口'来..

2021-11-05 19:28:41 258

原创 c++ stl库学习

//c++ stl库学习//http://c.biancheng.net/stl///vector向量#include <iostream>#include "vector"#include "list"#include "map"#include "set"#include "stack"using namespace std;void learnVector(){ //vector是动态数组,擅长在尾部插入或删除元素O(1).在容器头部或者中部插入或删除元素O(

2021-11-03 18:27:41 97

原创 链表基本操作 c++描述

//// Created by 周亮 on 2021/11/2.//#include "iostream"typedef struct st{ char *data; struct st *next;}lNode;void init(lNode *fp);bool empty(lNode *fp);void headInsert(lNode *fp, char *data);void tailInsert(lNode *fp, char *data);void ins

2021-11-02 14:00:34 212

原创 CSV文件的java读写库

public class CSVItem{ public String[] item ; CSVItem(int size){ item = new String[size]; }}CSVItem是每个csv文件的一个元素,每个元素放在item数组里面public class CSVReader { public int size; public CSVItem[] importCSV(String fileName) throw..

2020-11-21 20:21:24 254

原创 云台调节

云台调试云台imu姿态解算imu里面有acc和gyro,读取数据并通过开源算法得到姿态。经过滤波处理得到需要的姿态信息。姿态信息用于pid的反馈与测算串级pid串级pid调参顺序,内环,p,d。外环,p,d。pid的正弦响应```mermaidgraph TD;A-->B;B-->C;...

2020-11-20 20:07:36 985 1

原创 算法题,删除特定值,逆置的三种方法,原地逆置,链表排序,求链表的公共结点,链表归并,链表匹配算法

#include <stdbool.h>#include "stdio.h"#include "stdlib.h"/*学习心得,代码尽量自己想,没思路再去看答案,但是代码还是自己写,只是借鉴思路而已。做完,如果答案有不同的思路,就按照答案再做一遍*/struct ListNode { int val; struct ListNode *next;};/*工具类,栈*/int top=0;void push(int a[],int val){ a[top].

2020-08-14 19:56:38 89

原创 算法题,顺序表。表的逆置,删除指定值,顺序表融合,子数组的位置互换,两顺序数组的中位数问题,众数问题,空间换时间

#include <stdio.h>#include "stdlib.h"#include "stdbool.h"void reverse(int a[],int len);/*在19页*//*工具函数*/void swap(int *a,int *b){ int temp=*a; *a=*b; *b=temp;}/*设计一个高效算法,将顺序表中所有元素逆置,要求算法的空间复杂度为o(1)*/void reverse(int a[],int len).

2020-08-13 18:12:57 205

原创 查找

#include <stdio.h>#include "stdlib.h"#include "stdbool.h"//分块查找/*索引表*/typedef struct { int val; int low,high;}Index;Index dex[10]={{10,0,1}, {20,2,5}, {30,6,8}, {40,9,9}};/*b树*/struct Node{ int key[4]; struct Node *child[5].

2020-08-13 12:44:54 121

原创 2020-08-07

package com.company;import org.omg.Messaging.SYNC_WITH_TRANSPORT;import sun.security.provider.ConfigFile;import java.math.BigDecimal;import java.math.BigInteger;import java.util.Arrays;import java.util.Date;import java.util.Random;public class.

2020-08-07 21:05:12 164

原创 java编程思想-java基本概论

package com.company;import java.math.BigDecimal;import java.math.BigInteger;import java.util.Date;public class Main { public static void main(String[] args) { // write your code here Main m=new Main(); Circle circle1;//新建一个引用,但.

2020-08-05 18:09:07 96

原创 工具类函数集锦

链表类:struct ListNode { int val; struct ListNode *next;};//生成一个链表,用来做测试用,n是你要填入的数据个数struct ListNode* produceList(int n){ struct ListNode *s=(struct ListNode *)malloc(sizeof(struct ListNode)); struct ListNode *first=s; for (int i =

2020-08-01 21:23:24 114

原创 内部排序算法总集

#include <stdio.h>#include <stdlib.h>#include <stdbool.h>void InsertSort(int a[],int n);void InsertSort1(int a[],int n);void sheelSort(int a[],int n);void BubbleSort(int a[],int n);void quickSort(int a[],int low,int high);void s.

2020-08-01 00:59:18 126

原创 二叉树的顺序存储,链式存储,先,中,后,层序遍历。链队列

#include <stdio.h>#include <stdbool.h>#include <stdlib.h>#define MaxSize 100typedef struct { int id;}ElemType;/*以下为顺序存储二叉树,由于只有当树为完全二叉树的时候,树的结点和数组下标有关系 * 但当不是完全二叉树的时候,就要花费大量的空间去存储空值,造成了大量的内存浪费 * 因此一般不用顺序存储*/struct Tree{ .

2020-07-25 14:55:15 588

原创 静态链表

#include <stdio.h>#include <stdbool.h>#include <stdlib.h>#define MaxSize 10typedef struct { int id;}Elemtype;typedef struct st{ Elemtype data; int next;}SLinkList[MaxSize];int main(){ SLinkList L;//等价于struct st.

2020-07-22 12:57:07 94

原创 jetbrain系的快捷键用法

/*ctrl+shift+/ * * 快捷键 * ctrl+r replace * ctrl+y delete * ctrl+p 函数参数提示 * ctrl+d 复制到下一行 * ctrl+w * ctrl+b 进入定义处 * ctrl+j 自定义模板 * ctrl+- 折叠代码 * ctrl+[ 移动到花括号开始的位置 * ctrl+f1 显示错误信息 * ctrl+f4 下班 * ctrl+delete 删除后面中文句或单词 backspace反之 * ctrl+左方向.

2020-07-22 12:08:51 371

原创 双链表

#include <stdio.h>#include <stdbool.h>#include <stdlib.h>typedef struct { int id;}Elemtype;typedef struct st{ Elemtype data; struct st *prior,*next;}DNode,*DLinkList;bool InitDLinkList(DLinkList *L);bool InsertDLinkL.

2020-07-22 11:57:18 128

原创 串和kmp算法

#include <stdio.h>#include <stdbool.h>#define MAXLEN 255typedef struct { char ch[MAXLEN]; int length;}SString;int StrLength(SString S);int Index1(SString S,SString T);int Index(SString S,SString T);bool SubString(SString *Sub.

2020-07-21 23:26:38 78

原创 求阶乘和斐波那契数列

#include <stdio.h>#include <stdbool.h>#include <string.h>int fn(int );int fib(int n);int main(){ printf("%d\n", fn(5)); printf("%d\n", fib(5)); return 0;}//递归求n!和斐波那契数列//递归把原始问题转换成属性相同,但是规模较小的问题.// 递归带来了空间复杂度问题int.

2020-07-21 00:56:58 170

原创 后缀法表达式求值

#include <stdio.h>#include <stdbool.h>#include <string.h>int main(){ struct stack{ char data[20]; int top; }soper,snum; char str[20]={15,7,1,1,'+','-','/',3,'*',2,1,1,'+','+','-'}; int len=strlen(str);.

2020-07-21 00:40:34 87

原创 后缀法表达式求值

#include <stdio.h>#include <stdbool.h>#include <string.h>int main(){ struct stack{ char data[20]; int top; }soper,snum; char str[20]={15,7,1,1,'+','-','/',3,'*',2,1,1,'+','+','-'}; int len=strlen(str);.

2020-07-21 00:31:49 93

原创 链队列

#include <stdio.h>#include <stdbool.h>#include <stdlib.h>typedef struct { int id;}ElemType;typedef struct st{ ElemType data; struct st *next;}LinkNode;/* * * * 根据自己的需求修改数据结构 * 不要把眼光局限在课本里面 * * * * * * */type.

2020-07-20 22:39:26 166 1

原创 链栈

#include <stdio.h>#include <stdbool.h>#include <stdlib.h>typedef struct { char name[20];}ElemType;typedef struct st{ ElemType data; struct st *next;}LNode,*LinkStack;bool InitStack(LinkStack *L);bool Empty(LinkStack .

2020-07-20 22:38:40 91

原创 顺序队列

#include <stdio.h>#include <stdbool.h>#include <stdlib.h>#define MaxSize 10typedef struct { char name[20];}ElemType;typedef struct { ElemType data[MaxSize]; int front,rear; // int size; 这种方法可以不浪费那个多出来的空间,不过却多了一.

2020-07-20 22:38:00 460

原创 顺序栈

#include <stdio.h>#include <stdbool.h>#include <stdlib.h>#define MaxSize 10typedef struct { char name[20];}ElemType;typedef struct { ElemType data[MaxSize]; int top;//栈顶指针,记录数组下标}SqStack;void InitStack(SqStack *S);bo.

2020-07-20 22:37:23 69

原创 静态分配顺序表

#include <stdio.h>#include <stdbool.h>#define MaxSize 10typedef struct { char name[20];}ElemType;typedef struct { ElemType data[MaxSize]; int length;}SqList;void InitList(SqList *L);void show(SqList *L);void enter(SqList .

2020-07-20 22:36:15 171

原创 动态分配顺序表

#include <stdio.h>#include <stdbool.h>#define MaxSize 10typedef struct { char name[20];}ElemType;typedef struct { ElemType data[MaxSize]; int length;}SqList;void InitList(SqList *L);void show(SqList *L);void enter(SqList .

2020-07-20 22:35:21 201

原创 带头链表之基本操作

#include <stdio.h>#include <stdio.h>#include <stdbool.h>#include <stdlib.h>#include <string.h>typedef struct { int num; char name[20]; int class; char major[20]; int math; int chinese; int eng.

2020-07-20 22:34:08 80

原创 括号匹配问题

#include <stdio.h>#include <stdbool.h>#include <string.h>int main(){ struct stack{//堆 char data[20]; int top; }s; char str[20]={'(',')',')','[','[',']','{','}','{','(',')','}',']'}; int len=strlen(str);

2020-07-20 22:32:20 67

untitled.rar

学习笔记,不用下载

2020-08-07

空空如也

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

TA关注的人

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