<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[llingy的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/llingy</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; llingy]]></copyright><item><title><![CDATA[求逆序数]]></title><link>https://blog.csdn.net/llingy/article/details/6133132</link><guid>https://blog.csdn.net/llingy/article/details/6133132</guid><author>llingy</author><pubDate>Wed, 12 Jan 2011 23:25:00 +0800</pubDate><description><![CDATA[<br />求逆序数：<br />
1.冒泡排序，因为冒泡排序只交换两个相邻的数，所以每一次交换都只改变一个逆序，所以可以统计冒泡排序的交换元素的次数。<br />
2.归并排序。<br />
3.树状数组。<br />http://www.topcoder.com/tc?module=Static&d1=tutorials&d2=binaryIndexedTrees<br />http://blog.csdn.net/suwei19870312/archive/2010/02/06/5293694.]]></description><category></category></item><item><title><![CDATA[katalan数]]></title><link>https://blog.csdn.net/llingy/article/details/6133129</link><guid>https://blog.csdn.net/llingy/article/details/6133129</guid><author>llingy</author><pubDate>Wed, 12 Jan 2011 23:25:00 +0800</pubDate><description><![CDATA[<br />katalan数：<br />http://zh.wikipedia.org/zh/%E5%8D%A1%E5%A1%94%E5%85%B0%E6%95%B0<br />　　我总结了一下，最典型的四类应用：（实质上却都一样，无非是递归等式的应用，就看你能不能分解问题写出递归式了）<br /><br />
1.括号化问题。<br />
　　矩阵链乘： P=a1×a2×a3×……×an，依据乘法结合律，不改变其顺序，只用括号表示成对的乘积，试问有几种括号化的方案？(h(n)种)<br /><br ]]></description><category></category></item><item><title><![CDATA[文件特殊权限：SUID/SGID/Sticky Bit]]></title><link>https://blog.csdn.net/llingy/article/details/6133126</link><guid>https://blog.csdn.net/llingy/article/details/6133126</guid><author>llingy</author><pubDate>Wed, 12 Jan 2011 23:24:00 +0800</pubDate><description><![CDATA[文件特殊权限：SUID/SGID/Sticky Bithttp://www.anqn.com/os/linux/2009-03-01/a09108173.shtmlSet UID会创建s与t权限，是为了让一般用户在执行某些程序的时候，能够暂时具有该程序拥有者的权限。SUID仅可用在“二进制文件（binary file）”ls -l /usr/bin/passwd-r-s
--x--x  1 root root 18840 Mar  7 18:06 /usr/bin/passwdSet GID进一步而言，如]]></description><category></category></item><item><title><![CDATA[c语言的宏定义缺陷]]></title><link>https://blog.csdn.net/llingy/article/details/6133124</link><guid>https://blog.csdn.net/llingy/article/details/6133124</guid><author>llingy</author><pubDate>Wed, 12 Jan 2011 23:23:00 +0800</pubDate><description><![CDATA[c语言的宏定义缺陷http://hi.baidu.com/_kouu/blog/item/e86954eff3c342202cf53440.htmlAfter the arguments for the invocation of a function-like macro have been
identified, argument substitution takes place. A parameter in the replacement
list, unless preceded by a #]]></description><category></category></item><item><title><![CDATA[spring的一些简单概念]]></title><link>https://blog.csdn.net/llingy/article/details/6133111</link><guid>https://blog.csdn.net/llingy/article/details/6133111</guid><author>llingy</author><pubDate>Wed, 12 Jan 2011 23:21:00 +0800</pubDate><description><![CDATA[现在学习一下spring的具体概念：
1.IOC inverse of control 控制反转 是一种可以帮助我们解耦各业务对象间依赖关系的对象绑定方式。避免冗余的factory和singleton
2.依赖注入的方式有三种：接口注入，构造方法注入，setter方法注入。 
3.当前流行的IOC Service Provider产品使用的注册对象管理信息的方式主要有以下几种:
直接编码方式：通过为相应的类指定对应的具体实例 spring
配置文件方式：spring
元数据方式：代表是googl]]></description><category></category></item><item><title><![CDATA[Mybatis JPetStore 学习笔记(一)]]></title><link>https://blog.csdn.net/llingy/article/details/6133105</link><guid>https://blog.csdn.net/llingy/article/details/6133105</guid><author>llingy</author><pubDate>Wed, 12 Jan 2011 23:20:00 +0800</pubDate><description><![CDATA[Mybatis JPetStore 学习笔记(一)：
1. 首先看配置文件：
 根目录/WEB-INF 下有两个配置文件：applicationContext.xml和web.xml
很显然，applicationContext.xml是专门用来配置spring的。
其中有:
1)对数据库的配置：jdbc:embedded-database
2)数据库transaction manager的配置：org.springframework.jdbc.datasource.DataSourceTran]]></description><category></category></item><item><title><![CDATA[HSQLDB  试用]]></title><link>https://blog.csdn.net/llingy/article/details/6133087</link><guid>https://blog.csdn.net/llingy/article/details/6133087</guid><author>llingy</author><pubDate>Wed, 12 Jan 2011 23:16:00 +0800</pubDate><description><![CDATA[1.先试用服务器模式。1）下载hsqldb，解压并进入该目录，创建data目录。
2）创建数据库：java -cp ../lib/hsqldb.jar org.hsqldb.Server -database.0 file:test1 -dbname.0 testyll
上面语句创建了一个以testyll为访问名字的数据库，不过该数据库在data目录下的存储文件的名字为test1.
3)java -cp ../lib/hsqldb.jar org.hsqldb.DatabaseManager  打开Da]]></description><category></category></item><item><title><![CDATA[一些有趣的问题]]></title><link>https://blog.csdn.net/llingy/article/details/5947556</link><guid>https://blog.csdn.net/llingy/article/details/5947556</guid><author>llingy</author><pubDate>Sun, 17 Oct 2010 23:45:00 +0800</pubDate><description><![CDATA[<br />1. 不用比较操作(if, >, <)实现max/min <br />
(1)        max=(abs(a-b)+a+b)/2 min=(a+b)-max=((a+b)-abs(a-b))/2 <br />
(2)        int Max(int a, int b)<br />
        {<br />
            int ret[2] = { a, b };<br />
            int d = a - b;<br />
       ]]></description><category></category></item><item><title><![CDATA[简述configure、pkg-config、pkg_config_path三者的关系]]></title><link>https://blog.csdn.net/llingy/article/details/5877752</link><guid>https://blog.csdn.net/llingy/article/details/5877752</guid><author>llingy</author><pubDate>Sat, 11 Sep 2010 16:29:00 +0800</pubDate><description><![CDATA[原文出自于：http://www.mike.org.cn/articles/description-configure-pkg-config-pkg_config_path-of-the-relations-between/一、什么是configure　　源码安装过程中大多会用到configure这个程序，一般的configure都是一个script，执行时可以传入必要参数告知配置项目。　　configure程序它会根据传入的配置项目检查程序编译时所依赖的环境以及对程序编译安装进行配置，最终生成编译所需的M]]></description><category></category></item><item><title><![CDATA[C语言的谜题]]></title><link>https://blog.csdn.net/llingy/article/details/5868524</link><guid>https://blog.csdn.net/llingy/article/details/5868524</guid><author>llingy</author><pubDate>Tue, 07 Sep 2010 14:32:00 +0800</pubDate><description><![CDATA[<br />原文出自于：<br /> <br />http://blog.csdn.net/haoel/archive/2009/06/01/4231029.aspx  陈皓<br /> <br /> <br />我们可以看到很多C语言相关的一些东西。比如《语言的歧义》主要告诉了大家C语言中你意想不到的错误以及一些歧义上的东西。而《谁说C语言很简单》
则通过一些看似你从来不可能写出的代码来告诉大家C语言并不是一件容易事情。《6个变态的hello 
world》和《如何弄乱C的源代码》则以一种极端的方式告]]></description><category></category></item><item><title><![CDATA[继承----有关虚函数和虚拟继承]]></title><link>https://blog.csdn.net/llingy/article/details/5868337</link><guid>https://blog.csdn.net/llingy/article/details/5868337</guid><author>llingy</author><pubDate>Tue, 07 Sep 2010 13:22:00 +0800</pubDate><description><![CDATA[可以参考以下文章：http://blog.csdn.net/haoel/archive/2007/12/18/1948051.aspx C++ 虚函数表解析http://blog.csdn.net/haoel/archive/2008/10/15/3081328.aspx  C++对象的内存布局(上)http://blog.csdn.net/haoel/archive/2008/10/15/3081385.aspx  C++对象的内存布局(下)http://www.cnblogs.com/cswuyg/ar]]></description><category></category></item><item><title><![CDATA[NIM(1) 一排石头的游戏]]></title><link>https://blog.csdn.net/llingy/article/details/5863589</link><guid>https://blog.csdn.net/llingy/article/details/5863589</guid><author>llingy</author><pubDate>Sat, 04 Sep 2010 18:34:00 +0800</pubDate><description><![CDATA[<br />http://dev.firnow.com/course/3_program/c++/cppjs/20090524/167795.html<br />若规定最后取光石头的人输,又该如何应对呢(还有必胜的策略么?)?<br />仍然用<1,1,1,1>这种形式来表示石头.仍然是你先取.<br />如果是1块,你必输.<br />如果是2块,你赢.你可以在边角取走一块,然后便成为:这时候只剩1块石头,对手先取.这样就成1块石头的情况,结果当然是对手输<br />如果是3块,你赢.你可以在边角取走两块]]></description><category></category></item><item><title><![CDATA[i++为什么不能作为左值？]]></title><link>https://blog.csdn.net/llingy/article/details/5862128</link><guid>https://blog.csdn.net/llingy/article/details/5862128</guid><author>llingy</author><pubDate>Fri, 03 Sep 2010 19:44:00 +0800</pubDate><description><![CDATA[<br />（1）首先说左值和右值的定义：<br />变量和文字常量都有存储区，并且有相关的类型。区别在于变量是可寻址的（addressable）对于每一个变量都有两个值与其相联：<br />
1).它的数据值，存储在某个内存地址中。有时这个值也被称为对象的右值（rvalue,读做are-value）.我们也可认为右值的意思是被读取的值<br />
（read value）。文字常量和变量都可  被用作右值。<br />
2).它的地址值——即存储数据值的那块内存的地址。它有时被称为变量的左值（lva]]></description><category></category></item><item><title><![CDATA[C++Template头文件和定义分开编译的问题]]></title><link>https://blog.csdn.net/llingy/article/details/5848026</link><guid>https://blog.csdn.net/llingy/article/details/5848026</guid><author>llingy</author><pubDate>Sun, 29 Aug 2010 16:28:00 +0800</pubDate><description><![CDATA[<br />（1）<br />// Foo.h<br />
template<typename T><br />
class Foo<br />
{<br />
public:<br />
void f();<br />
};<br /><br />
// Foo.cpp<br />
#include <iostream><br />
#include "Foo.h"<br /><br />
template<typename T><br />
void Foo<T>::f()<br ]]></description><category></category></item><item><title><![CDATA[Linux内核和传统Unix内核的比较]]></title><link>https://blog.csdn.net/llingy/article/details/5846548</link><guid>https://blog.csdn.net/llingy/article/details/5846548</guid><author>llingy</author><pubDate>Sat, 28 Aug 2010 19:57:00 +0800</pubDate><description><![CDATA[<br /> <br /><br />
    所有的Unix内核都同宗同源，并且提供相同的API，现代的Unix内核存在许多设计上的相似之处。<br />Unix内核
几乎毫无例外的都是一个不可分割的静态可执行块（文件）
。也就是说，它们必须以完整、单<br />独的可执行块的形式在一个单独的地址空间
中运行。<br />Unix内核几乎都需要硬件系统提供页机制以管理内存
。这种页机制可以加强内存空间的保护，并保证每<br />个进程都可以运行于不同的虚地址空间上。 <br />
    单内]]></description><category></category></item><item><title><![CDATA[书单]]></title><link>https://blog.csdn.net/llingy/article/details/5842786</link><guid>https://blog.csdn.net/llingy/article/details/5842786</guid><author>llingy</author><pubDate>Fri, 27 Aug 2010 10:37:00 +0800</pubDate><description><![CDATA[此种颜色代表已读，而且目前也不打算重读的书。此种颜色代表已读，但是还打算近期重新翻阅一下的书。此种颜色代表读了一些，但还未读完的书，近期打算继续读下去的书。此种颜色代表还未读，近期打算读的书。此种颜色代表还未读，但近期不打算读的书。java:thinking in java,
effective java
head first jsp&servlethead first design pattern
c/c++：the c programming languageC陷阱与缺陷
C专家编程c++ pr]]></description><category></category></item><item><title><![CDATA[C/C++ 程序设计员应聘常见面试试题深入剖析]]></title><link>https://blog.csdn.net/llingy/article/details/5840695</link><guid>https://blog.csdn.net/llingy/article/details/5840695</guid><author>llingy</author><pubDate>Thu, 26 Aug 2010 14:43:00 +0800</pubDate><description><![CDATA[<br />   1.引言<br /><br />
　　本文的写作目的并不在于提供C/C++程序员求职面试指导，而旨在从技术上分析面试题的内涵。文中的大多数面试题来自各大论坛，部分试题解答也参考了网友的意见。<br /><br />
　
　许多面试题看似简单，却需要深厚的基本功才能给出完美的解答。企业要求面试者写一个最简单的strcpy函数都可看出面试者在技术上究竟达到了怎样的程
度，我们能真正写好一个strcpy函数吗？我们都觉得自己能，可是我们写出的strcpy很可能只能拿到10分中的2分。读者]]></description><category></category></item><item><title><![CDATA[c++的四种转型关键字]]></title><link>https://blog.csdn.net/llingy/article/details/5839736</link><guid>https://blog.csdn.net/llingy/article/details/5839736</guid><author>llingy</author><pubDate>Thu, 26 Aug 2010 10:45:00 +0800</pubDate><description><![CDATA[const_cast<br />
Syntax:
    TYPE const_cast<
TYPE>(
object);<br />
The const_cast keyword can be used to remove the const
 or volatile
 property from an object.
  The target data type must be the same
 as the 
source type, except (of course) tha]]></description><category></category></item><item><title><![CDATA[printf的实现]]></title><link>https://blog.csdn.net/llingy/article/details/5830684</link><guid>https://blog.csdn.net/llingy/article/details/5830684</guid><author>llingy</author><pubDate>Sun, 22 Aug 2010 22:01:00 +0800</pubDate><description><![CDATA[<br /><br />
一．   何谓可变参数 <br />
int   printf(   const   char*   format,   ...);   <br />
这是使用过C语言的人所再熟悉不过的printf函数原型，它的参数中就有固定参数format和可变参数（用”…”表示）.   而我们又可以用各种方式来调用printf,如: <br />
printf( "%d ",value);   <br />
printf( "%s ",str);   <br />
printf( ]]></description><category></category></item><item><title><![CDATA[静态链接库编译的问题]]></title><link>https://blog.csdn.net/llingy/article/details/5819314</link><guid>https://blog.csdn.net/llingy/article/details/5819314</guid><author>llingy</author><pubDate>Tue, 17 Aug 2010 21:13:00 +0800</pubDate><description><![CDATA[<br />http://hi.baidu.com/liaimin/blog/item/4d2d7bcbbe320d1bbf09e605.html]]></description><category></category></item></channel></rss>