上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 527 下一页
摘要: 近期一直想看spring的源代码,可是奈何水平太低,庞杂的源代码令我一阵阵的头晕。 非常有幸,在网上看到了黄亿华大神的<<1000行代码读懂Spring(一)- 实现一个主要的IoC容器>> 认为相当不错,就以他的代码为基础,自己又写了一个IoC容器(基本上都是黄的代码,我仅仅改了一部分) 原网页例 阅读全文
posted @ 2016-02-21 10:04 zfyouxi 阅读(713) 评论(1) 推荐(0) 编辑
摘要: 1 初始化时就有一个tab空格 这是由于<textarea></textarea>之间的内容不为空的原因,包含空格和换行,否则浏览器会觉得空格或者换行都是文本域的内容。因此书写时需将<textarea></textarea>紧靠在一起。 2 tab键对textarea操作无效 在textarea中使 阅读全文
posted @ 2016-02-21 09:59 zfyouxi 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 题意:找出一段逆序! 预存a[]数组到b[]数组。将b排序,然后前后找不同找到区间[l,r],然后推断[l,r]是否逆序就能够了!。当然还得特判本身就是顺序的!!! AC代码例如以下: #include<cstdio> #include<iostream> #include<cstring> #in 阅读全文
posted @ 2016-02-21 08:03 zfyouxi 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 摘要:本文主要讲述进程的终止方式,以及怎样使用exit()函数来终止进程。回收进程用户空间资源;分析了exit()函数与_exit()函数,returnkeyword的差异.同一时候具体解读了怎样使用atexit()和on_exit()函数来注冊终止处理程序. 进程终止、回收资源 1.进程终止方式 阅读全文
posted @ 2016-02-20 21:38 zfyouxi 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 代码结构: web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/200 阅读全文
posted @ 2016-02-20 20:29 zfyouxi 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 安装命令例如以下: curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1 当brew成功安装后,就能够任意安装自己想要的软件了,比如cloc,命令例如以下: su 阅读全文
posted @ 2016-02-20 20:21 zfyouxi 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 题目链接:传送门 题意: 求最小的 ( x! ) = 0 mod (a1^b1*a2^b2...an^bn) 分析: 首先吧a1~an进行素因子分解,然后统计下每一个质因子的指数。因为随着x的增大,质因子的个数是逐渐添加的 因此我们能够二分x。对x!进行素因子分解推断是否满足条件。然后求出最小的就能 阅读全文
posted @ 2016-02-20 18:41 zfyouxi 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Activity的启动分为两种方式,显示方式和隐式方式,显示方式就是在通过intent启动Activity时指定了Activity的包名和类名。 而隐式方式则在初始化Intent时仅仅指定action或action和data属性。接下来将来总结显示启动和隐式启动的方式和注意事项。 1、Activit 阅读全文
posted @ 2016-02-20 18:09 zfyouxi 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Kindergarten Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 5660 Accepted: 2756 Description In a kindergarten, there are a lot of kids. Al 阅读全文
posted @ 2016-02-20 16:30 zfyouxi 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 题目原文: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a s 阅读全文
posted @ 2016-02-20 15:21 zfyouxi 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 527 下一页