摘要:
近期一直想看spring的源代码,可是奈何水平太低,庞杂的源代码令我一阵阵的头晕。 非常有幸,在网上看到了黄亿华大神的<<1000行代码读懂Spring(一)- 实现一个主要的IoC容器>> 认为相当不错,就以他的代码为基础,自己又写了一个IoC容器(基本上都是黄的代码,我仅仅改了一部分) 原网页例 阅读全文
摘要:
1 初始化时就有一个tab空格 这是由于<textarea></textarea>之间的内容不为空的原因,包含空格和换行,否则浏览器会觉得空格或者换行都是文本域的内容。因此书写时需将<textarea></textarea>紧靠在一起。 2 tab键对textarea操作无效 在textarea中使 阅读全文
摘要:
题意:找出一段逆序! 预存a[]数组到b[]数组。将b排序,然后前后找不同找到区间[l,r],然后推断[l,r]是否逆序就能够了!。当然还得特判本身就是顺序的!!! AC代码例如以下: #include<cstdio> #include<iostream> #include<cstring> #in 阅读全文