- 博客(12)
- 收藏
- 关注
原创 Mac下使用Docker搭建FastDFS Java客户端 Connect Timeout
MacOS下使用Docker搭建FastDFS Java客户端 Connect Timeout,超时无法连接,踩坑问题解决思路过程
2022-01-04 11:05:16
938
原创 Could not get unknown property ‘classesDir‘ for main classes of type报错解决
Gradle:报错: Could not get unknown property 'classesDir' for main classes of type 使用gradle-5.6构建Spring4.3源码时构建报错,查找资料为Gradle5以上sourceSets.main.output.classesDir更改为了sourceSets.main.output.classesDirs解决办法: 将如下3个文件中的classesDir 改为 classesDirs,...
2020-12-08 19:07:50
2570
原创 C语言实现二叉树的遍历等操作
#include <stdio.h>#include <stdlib.h>#define MAX_TREE_SIZE 100typedef char DataType ;typedef struct BiTNode{ DataType data; struct BiTNode *lchild,*rchild; }BiTNode,*BiTree;//定义树遍历函数的指针 typedef void(*TREEORDER_FUN)(BiTree &BT);.
2020-11-25 12:37:06
494
原创 C语言队列解决舞伴匹配问题
舞伴问题:男女站成两队依次结成舞伴,两队人数不同,人数多的队伍则会出现无人匹配的情况,所以多出的人等待下一轮其他组完成跳舞,再继续结成舞伴。#include <stdio.h>#include <stdlib.h> #include <string.h>#include<time.h>#define MAXSIZE 13typedef struct{ char name[20]; char sex;}Person;typedef Pe
2020-11-25 12:25:21
3145
1
原创 C语言解决约瑟夫环问题
#include <stdio.h>#include <stdlib.h>typedef struct Node{ int data; struct Node *next;}LNode,*LinkList;//创建无头结点的循环链表void create_L(LinkList &L,int n){ LinkList r = L; for(int i = 1;i<=n;i++) { LinkList ...
2020-11-25 12:07:17
715
原创 SpringCloud入门-Eureka高可用Ribbon负载均衡环境搭建模拟微服务场景
Eureka应用场景 在SOA(面向服务)的架构中,随着服务提供者和消费者的不断增加,注册中心(Eureka)就产生了,它充当一个中介的角色,收取服务提供者注册的信息,包括地址和服务的功能,等待消费者的定期信息拉取,从而使消费者高效地调用服务完成任务。架构图Eureka:就是服务注册中心(一般为集群),对外暴露自己的地址,提供者:启动后向Eureka...
2019-10-18 11:10:52
336
原创 C语言纯指针实现回文判断
#include<stdio.h>#include<string.h>void ishuiwen(char *str){ char *p = str; char *q = str; while(*q!='\0'){q++;} q--;//指针指向'\0'自减从而指向最后一个字符 int i; int flag = 1; for(i=0;i...
2018-04-12 15:22:50
6535
原创 C语言实现动态栈基本操作
#include <stdio.h>#include<malloc.h>#include<stdlib.h>typedef struct Node { int date; struct Node *pNext;}NODE,*PNODE;typedef struct Stack { PNODE Top; PNODE ...
2018-01-04 19:13:27
571
原创 如何用C++实现一个动态栈的基本操作
#include <iostream>using namespace std;class Node{ int date;//节点数据 Node *pNext;//指向下一个节点的指针 friend class Stack;//友元类};class Stack{public: Stack()//构造器 { pTop...
2018-01-04 19:11:56
669
原创 C语言实现非循环单链表基本操作
#include<stdio.h>#include<malloc.h>typedef struct Node{ int date;//节点数据 struct Node * pNext;//指向下一个节点的指针}*PNODE,NODE;PNODE creat_list()//创建链表{ int len,val,i; PNODE p...
2018-01-02 16:54:06
469
原创 C,C++实现Java中ArrayLsit
C语言版ArrayList.h#ifndef ARRAYLIST_H#define ARRAYLIST_H#include"ArrayList.h"struct Arr { int *pBase;//数组首元素地址 int len;//数组最大长度 int cnt;//数组有效个数};void init_arr(struct Arr *pArr,in...
2017-12-29 12:38:21
399
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人