- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 Egret eui.Scroller扩展
支持任意位置索引的增加和删除支持移动到顶部,底部以及任意索引位置支持官方eui.Scroller item填不满可视视图不能滑动的问题新增支持下拉刷新只会显示可视区域item以及缓冲item,默认四个效果图:下载demo地址:https://github.com/a834286983/project/blob/master/SuperScr...
2019-08-21 11:05:41
768
1
转载 windows下zlib库的编译与使用(转)
一、zlib库的编译首先要下载这个库,这个谷歌和百度也都可以找得到的。我下载的是zlib-1.2.5,下载完解压出来即可。下边就开始编译吧。(包括动态库和静态库两种)首先开启VS2010的Command Prompt (32bit),也就是命令提示窗口。进入到zlib-1.2.5/contrib/masmx86目录,执行bld_ml32.bat。(同理,64位的电脑进入masmx64...
2019-06-25 14:57:20
874
1
原创 Unity3d UGUI Text 增加下划线
using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.EventSystems;using UnityEngine.UI;/* 直接附加在存在Text脚本的GameObject对象即可 仅仅支持单行且文本上下对齐方向必须居中*/pub...
2018-10-23 09:26:11
14563
1
原创 顺时针打印矩阵
vector<int> printMatrix(vector<vector<int> > matrix) { vector<int>* ret = new vector<int>(); int rotate = 0; int x = 0, y = 0, w = matrix[0].size(), h = matrix.size();...
2018-09-28 10:58:10
161
原创 链表合并
pHead1,pHead2都是单调递增链表,将二者合并成一个单调递增链表ListNode* Merge(ListNode* pHead1, ListNode* pHead2){ if (!pHead1 && !pHead2) return nullptr; ListNode* merge = nullptr; while (pHead1 || pHead2) {...
2018-09-28 10:56:49
192
原创 单链表反转
/链表节点结构体/struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { }};/实现代码/ListNode* ReverseList(ListNode*& pHead) { if (pHead == nullptr) return nu...
2018-09-28 10:54:11
148
原创 将一个int型十进制数字转成二进制数字字符串
char* numberToBinaryString(int n){ bool isLowZero = n &lt; 0; n = abs(n); char* str = new char[33]; memset(str, 0, 33); unsigned short idx = 0; while (n != 0) { str[idx] = 0x30 + n % 2; id...
2018-09-28 10:43:43
2070
原创 c++实现由数字和大小写字母组成的的一个不重复的字符串,长度5~10,首位不能是数字
遇到过的一个面试,闲暇的时候实现了一下,有不对的地方请多多指教~#include &amp;lt;string.h&amp;gt;char* chSet;__int64 cout = 0;void recursion(int idx, int len, char* name){ if (idx &amp;gt;= len) { return; } for ...
2018-08-23 09:46:55
1340
SuperScrollView.zip
2019-08-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅