-
AlertDialog自定义控件
点击enter按钮会关闭对话框,留在当前Activity,点击exit按钮则退出应用。 首先是main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/androi…... Daisy
- 0
- 0
- 71
-
如何解leetcode Factorial Trailing Zeroes
问题描述: Given an integer n, return the number of trailing zeroes in n!. Example 1: Input: 3 Output: 0 Explanation: 3! = 6, no trailing zero. Example 2: …... Daisy
- 0
- 0
- 110
-
函数postgres(二)
函数:chr(int)说明:Character with the given code. For UTF8 the argument is treated as a Unicode code point. For other multibyte encodings the argument must designate a strictly ASCII character. The NULL (0…... Daisy
- 0
- 0
- 62
-
函数postgres(一)
1.数据修复最先考虑通过db内做修复,实在不行,在考虑外部应用程序通过jdbc修复. 比如一个场景:profile_image_url与enlarge_image_url都是微博用户信息返回的字段. 前者是http://tp2.sinaimg.cn/1928431341/50/5621497131/1,后者正常情况是http: //tp2.sinaimg.cn/1928431341/180/562…... Daisy
- 0
- 0
- 83
-
Sequence_table代码展示
Sequence_table完整代码展示 #pragma once#include<stdio.h>#include<stdlib.h>#include<assert.h> // 动态顺序表typedef int SLDataType; typedef struct SeqList{ SLDataType* a;  …... Daisy
- 0
- 0
- 174
-
什么是Sequence_table.c功能函数
Sequence_table.c功能函数的定义 1.头文件的声明 #include"Sequence_table.h" 2.初始化、销毁、打印函数的定义 //初始化顺序表void SLInit(SL* ps){ ps->a = (SLDataType*)malloc(sizeof(SLDataType) * 4); if…... Daisy
- 0
- 0
- 303
-
什么是Sequence_table.c功能函数
Sequence_table.c功能函数的定义 1.头文件的声明 #include"Sequence_table.h" 2.初始化、销毁、打印函数的定义 //初始化顺序表void SLInit(SL* ps){ ps->a = (SLDataType*)malloc(sizeof(SLDataType) * 4); if…... Daisy
- 0
- 0
- 192
-
建立Sequence_table.h头文件
1.头文件的声明 #pragma once#include<stdio.h>#include<stdlib.h>#include<assert.h> 2.顺序表接口实现 typedef int SLDataType;//类型重命名 typedef struct SeqList{ SLDataType* a; i…... Daisy
- 0
- 0
- 176
-
ArrayList的特点
ArrayList的优缺点 优点: 根据指定的下标(索引)去查找元素,效率非常高!时间复杂度O(1) 更新元素也很快:更新指定下标的元素 缺点: 增容需要申请新空间,拷贝数据,释放旧空间。会有不小的消耗。 每次插入数据,都需要移动元素,极端情况下,如果插入到0下标,那么移动的元素复杂度O(n) 每次删除数据的时候,都需…... Daisy
- 0
- 0
- 229
-
ArrayList的使用方法
ArrayList的使用方法: public class Card { public int rank;//牌面色 public String suit;//花色 public Card(String suit,int rank) { this.rank = ran…... Daisy
- 0
- 0
- 177
-
ArrayList的构造
ArrayList有三个构造方法: 1、无参构造 2、利用其它构建 3、指定顺序表初始容量 无参构造的源码分析 public ArrayList() { this.elementData = DEFAULTCAPACITY_EMPTY_ELEMENTDATA;} 上面是ArrayList()无参构造的源码。那么elementData 和 DEFAULTCAPACITY_E…... Daisy
- 0
- 0
- 56
幸运之星正在降临...
点击领取今天的签到奖励!
恭喜!您今天获得了{{mission.data.mission.credit}}积分
我的优惠劵
-
¥优惠劵使用时效:无法使用使用时效:
之前
使用时效:永久有效优惠劵ID:×
没有优惠劵可用!



































