摘要: Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Description Find and list all four-digit numbers in decimal notatio 阅读全文
posted @ 2017-05-12 21:10 cxchanpin 阅读(194) 评论(0) 推荐(0)
摘要: 题目 Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you are 阅读全文
posted @ 2017-05-12 19:21 cxchanpin 阅读(144) 评论(0) 推荐(0)
摘要: 全然依照海涛哥剑指offer里边的递归思路来写的。基本一样。仅作学习验证。努力锻炼。努力学习! 题目:输入一棵二元查找树,将该二元查找树转换成一个排序的双向链表。要求不能创建不论什么新的结点,仅仅调整指针的指向。 比方将二元查找树 10 / \ 6 14 / \ / \ 4 8 12 16 转换成双 阅读全文
posted @ 2017-05-12 17:43 cxchanpin 阅读(163) 评论(0) 推荐(0)
摘要: 上篇刚好说到获取到了签名信息,以下进入安装过程,直接上源代码: private void installNewPackageLI(PackageParser.Package pkg, int parseFlags, int scanMode, UserHandle user, String inst 阅读全文
posted @ 2017-05-12 16:55 cxchanpin 阅读(481) 评论(0) 推荐(0)
摘要: 作用域指针 当我们并不打算复制智能指针,仅仅是想保证被分配的资源将被正确地回收,能够採用一种简单得多的解决方式:作用域指针。例如以下演示样例代码: template <typename T> class ScopedPtr { public: explicit ScopedPtr(T* p = NU 阅读全文
posted @ 2017-05-12 16:21 cxchanpin 阅读(487) 评论(0) 推荐(0)
摘要: unsigned char 是无符号字符型 volatile 易变,易失的 volatile unsigned char i; 意思是定义一个无符号字符型的变量 i。 这个变量存放在内存中,要用的时候须要从内存中取出。 一般的逻辑是“准备用变量 去相应的内存地址取变量 用变量”,而如今编译器编介入后 阅读全文
posted @ 2017-05-12 16:18 cxchanpin 阅读(611) 评论(0) 推荐(0)
摘要: 近期在朋友圈,朋友转了一个html小游戏【壹秒】,游戏的规则是:用户按住button然后释放,看谁能精准地保持一秒的时间。^_^刚好刚才在linuxserver上调试程序的时候server挂了,腾出点时间分享下前天自己做的这个小游戏。 话不多说,直接上图: 呐,作为一个对android无比热爱的小伙 阅读全文
posted @ 2017-05-12 15:45 cxchanpin 阅读(315) 评论(0) 推荐(0)
摘要: #include<iostream> #include<memory.h> using namespace std; int dp[10010]; int max(int a,int b) { return a>b?a:b; } int main() { int n,v,vi[10100],wi[1 阅读全文
posted @ 2017-05-12 14:59 cxchanpin 阅读(169) 评论(0) 推荐(0)
摘要: CMake - boost 最后更新日期:2014-04-25by kagula 阅读前提:《CMake入门(二)》、Linux的基本操作 环境: Windows 8.1 64bit英文版。Visual Studio 203 Update1英文版。CMake 2.8.12.2、 Cent OS 6. 阅读全文
posted @ 2017-05-12 13:24 cxchanpin 阅读(913) 评论(0) 推荐(0)
摘要:  IoC,Inversion Of Control 即控制反转,由容器来管理业务对象之间的依赖关系,而非传统方式中的由代码来管理。 其本质。即将控制权由应用程序代码转到了外部容器,控制权的转移就是所谓的反转,其带来的最大的优点是减少了业务对象之间的依赖程度,即实现了解耦。 Spring的IoC容 阅读全文
posted @ 2017-05-12 11:57 cxchanpin 阅读(197) 评论(0) 推荐(0)
摘要: 周六周日写了些查询的窗口,感觉没什么新奇的东西,都是一堆select,后来写的到了注冊,上下机等,在一个方法里面,包括了多个增删改查的过程。可能上一个訪问数据库的过程返回的结果又是下一个訪问数据库读取数据的參数。也就是说,这些对数据库的增删改查是一个连贯的动作,比方。注冊一个学生的时候。涉及到注冊金 阅读全文
posted @ 2017-05-12 10:54 cxchanpin 阅读(167) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="utf-8"?> <UpdCfg> <Upgrade> <VERSION>6.0</VERSION> <UpdInfo>--0.0--</UpdInfo> </Upgrade> <Upgrade> <VERSION>8.0</VERSION 阅读全文
posted @ 2017-05-12 09:18 cxchanpin 阅读(164) 评论(0) 推荐(0)
摘要: 微软的IE9 + Extjs3.1 确实头疼。在使用了line-height:20px 的Tree的样式,可是一直没有生效, 以下给出3中解决方式: 方案1、加padding-top: <div style="height:22px;line-height:22px; padding-top:3px 阅读全文
posted @ 2017-05-12 08:19 cxchanpin 阅读(454) 评论(0) 推荐(0)