恢复内容开始 头插法:元素插在链表头部。 ① 从一个空表开始,重复读入数据; ② 生成新结点,将读入数据存放到新结点的数据域中; ③ 从最后一个结点开始,依次将各结点插入到链表的前端 例如,建立链表L,其中有五个元素 a,b,c,d,e 代码部分: //通过头指针获得链表L,n 是结点数。 void ...
分类:
其他好文 时间:
2021-04-24 13:28:10
阅读次数:
0
Mongdb mongdb入门 mongdb安装 linux下安装mangdb wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel62-3.2.10.tgz 下载完成后解压 tar zxvf mongodb-linux-x8 ...
分类:
数据库 时间:
2021-04-24 11:58:27
阅读次数:
0
客户端: class SocketClient { private byte[] byteRcvbuf; public Socket Client { get; set; } public string SocketIP { get; set; } public uint SocketPort { ...
分类:
其他好文 时间:
2021-04-24 11:54:07
阅读次数:
0
我的idea使用maven引入依赖没有成功,只能下载jar包 下载jar包地址: http://repo.e-iceblue.com/nexus/content/groups/public/e-iceblue/spire.xls.free/ pom.xml中配置jar所在路径 <dependency ...
分类:
其他好文 时间:
2021-04-23 12:25:08
阅读次数:
0
下面我们再给出一个线程不安全的例子。 例:1.8.2 class BookMark_to_win { int bookNum=10; void onlySellOne() { if (bookNum > 0) { System.out.println(Thread.currentThread().g ...
分类:
编程语言 时间:
2021-04-23 12:23:20
阅读次数:
0
#Nacos(注册中心) 有关Spring Cloud Alibaba之前写过三篇文章。 Spring Cloud Alibaba(1) 入门篇 Spring Cloud Alibaba(2) RestTemplate微服务项目 Spring Cloud Alibaba(3) Nacos概述 有关注 ...
分类:
编程语言 时间:
2021-04-23 12:21:14
阅读次数:
0
java 矩阵转换: class ImageUtil{ public static int[][] convert2DArray(int[][] arr){ int height=arr.length; int width=arr[0].length; int[][] result=new int[ ...
分类:
其他好文 时间:
2021-04-23 12:03:31
阅读次数:
0
说明: break语句:终止并跳出循环体。continue语句:终止当前循环,重新开始一个新的循环。goto语句:跳转到指定位置 。 一,continue语句 class Program { static void Main(string[] args) { for(int i = 1; i <= ...
函数的默认参数 //注意事项:入股哦有一个位置有了默认参数,那么从这个位置开始,从左往后都必须有默认参数 //函数声明和实现里,只能有一个里面有默认参数,不能同时都有默认参数 void test03(int a = 20, int b = 30) {cout << "a + b = " << a + ...
分类:
编程语言 时间:
2021-04-22 16:33:54
阅读次数:
0
1.接口本身具有数据成员、抽象方法、默认方法、和静态方法,但它与抽象类不同 1)接口的数据成员都是静态的且必须初始化,即数据成员必须是静态常量 2)接口中除咯声明抽象方法外,还可以定义静态方法 和默认方法 2.接口定义格式: [public] interface 接口名称 [extends 父接口列 ...
分类:
编程语言 时间:
2021-04-22 16:18:27
阅读次数:
0