<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Allendale的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Allendale</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Allendale]]></copyright><item><title><![CDATA[Node.js异步处理CPU密集型任务]]></title><link>https://blog.csdn.net/Allendale/article/details/25819385</link><guid>https://blog.csdn.net/Allendale/article/details/25819385</guid><author>Allendale</author><pubDate>Wed, 14 May 2014 17:44:57 +0800</pubDate><description><![CDATA[这篇文章提出了backgroundjs这个新的概念，扩展了Node.js的能力,解决了Node在处理CPU密集任务时的短板。这个解决方案使得使用Node的开发人员只需要关注backgroundjs中的函数。比起多开进程或者新添加模块的解决方案更高效，通用和一致。]]></description><category></category></item><item><title><![CDATA[编写的windows程序，崩溃时产生crash dump文件的办法(转)]]></title><link>https://blog.csdn.net/Allendale/article/details/18796567</link><guid>https://blog.csdn.net/Allendale/article/details/18796567</guid><author>Allendale</author><pubDate>Sun, 26 Jan 2014 15:36:14 +0800</pubDate><description><![CDATA[文章来源:http://blog.csdn.net/fhxpp_27/article/details/9701867




一、引言

dump文件是C++程序发生异常时，保存当时程序运行状态的文件，是调试异常程序重要的方法，所以程序崩溃时，除了日志文件，dump文件便成了我们查找错误的最后一根救命的稻草。windows程序产生dump文件和linux程序产生dump文件的方式不一]]></description><category></category></item><item><title><![CDATA[浅谈chromium中的指针管理]]></title><link>https://blog.csdn.net/Allendale/article/details/12397473</link><guid>https://blog.csdn.net/Allendale/article/details/12397473</guid><author>Allendale</author><pubDate>Mon, 07 Oct 2013 18:00:25 +0800</pubDate><description><![CDATA[source: http://blog.csdn.net/qq295445028/article/details/8017661

浅谈chromium中的指针管理

分类： chromium2012-09-25
 16:45 342人阅读 评论(0) 收藏 举报

objectreferencepointersclass多线程null



目录(?)[+]



]]></description><category></category></item><item><title><![CDATA[下载编译Chrome详细步骤]]></title><link>https://blog.csdn.net/Allendale/article/details/9262833</link><guid>https://blog.csdn.net/Allendale/article/details/9262833</guid><author>Allendale</author><pubDate>Sun, 07 Jul 2013 13:23:56 +0800</pubDate><description><![CDATA[1      Chrome的代码量巨大，下载编译的过程一出错，可能就需要回头从来。工欲善其事，必先利其器，推荐电脑内存至少8G，否则会难以忍受的慢，当然是64位系统，您还需要设置显示文件后缀名。如图，将勾选去掉



2   然后安装Visual Studio 2010 Uitimate，安装路径默认。安装最全的，以后省心，然后顺序安装：


VS2010 SP1Windows 8]]></description><category></category></item><item><title><![CDATA[把数组排成最小的数(66)]]></title><link>https://blog.csdn.net/Allendale/article/details/9186461</link><guid>https://blog.csdn.net/Allendale/article/details/9186461</guid><author>Allendale</author><pubDate>Thu, 27 Jun 2013 04:22:49 +0800</pubDate><description><![CDATA[68.把数组排成最小的数。
题目：输入一个正整数数组，将它们连接起来排成一个数，输出能排出的所有数字中最小的一个。
例如输入数组{32,  321}，则输出这两个能排成的最小数字32132。
请给出解决问题的算法，并证明该算法。
分析：这是09年6月份百度的一道面试题，
从这道题我们可以看出百度对应聘者在算法方面有很高的要求。



/*
  Name: 
  Copyright]]></description><category></category></item><item><title><![CDATA[堆排序算法]]></title><link>https://blog.csdn.net/Allendale/article/details/9055061</link><guid>https://blog.csdn.net/Allendale/article/details/9055061</guid><author>Allendale</author><pubDate>Sat, 08 Jun 2013 12:28:31 +0800</pubDate><description><![CDATA[/*
  Name: 
  Copyright: 
  Author: 
  Date: 18-06-11 20:51
  Description: 实现堆排序的模版类 ,元素从1开始计.T为要排序的元素类型，
               [note:]必须支持 <= 运算 和 赋值运算 
*/
#include
#include
using namespace std;

template
c]]></description><category></category></item><item><title><![CDATA[快速排序]]></title><link>https://blog.csdn.net/Allendale/article/details/9054653</link><guid>https://blog.csdn.net/Allendale/article/details/9054653</guid><author>Allendale</author><pubDate>Sat, 08 Jun 2013 11:30:36 +0800</pubDate><description><![CDATA[#include
using namespace std;
/*
  Name: 
  Copyright: 
  Author: 
  Date: 08/06/13 10:30
  Description:  
*/

template
int  partion(T t[],int p,int r)
{
     T x=t[r];
     T temp;
     int i=p-1;]]></description><category></category></item><item><title><![CDATA[一个CPU占用成正弦曲线的代码]]></title><link>https://blog.csdn.net/Allendale/article/details/8949122</link><guid>https://blog.csdn.net/Allendale/article/details/8949122</guid><author>Allendale</author><pubDate>Mon, 20 May 2013 10:17:43 +0800</pubDate><description><![CDATA[Name:  
  Copyright:  
  Author:  
  Date:
  Description: 测试的时候，如果是多核cpu,需要设置cpu的亲和性。
 
 
#include
#include
#include
const double SPLIT =0.01;
const int COUNT=200;
const double PI=3.1415926;
co]]></description><category></category></item><item><title><![CDATA[list 容器实现]]></title><link>https://blog.csdn.net/Allendale/article/details/8947378</link><guid>https://blog.csdn.net/Allendale/article/details/8947378</guid><author>Allendale</author><pubDate>Sun, 19 May 2013 18:13:18 +0800</pubDate><description><![CDATA[这是一份简化了的List容器的实现代码，支持迭代器，包含了常用功能。
这个list的方法列表：
    拷贝构造和赋值构造
   清除容器——remove_all()
   大小——size()
   在尾部插入元素—— push_back(elem)
   弹出尾部节点——pop_back()
   获得最后节点元素的一份拷贝——get_back()
   获得迭代器操作]]></description><category></category></item><item><title><![CDATA[大整数相乘]]></title><link>https://blog.csdn.net/Allendale/article/details/8947128</link><guid>https://blog.csdn.net/Allendale/article/details/8947128</guid><author>Allendale</author><pubDate>Sun, 19 May 2013 16:38:56 +0800</pubDate><description><![CDATA[这是一道经典的上机题目
 
#include 
#include 
#include 

#define N 100  //N代表乘数的位数，根据具体应用，想设多大设多大。
/*****
 * Function: 大整数相乘算法
 * 参数：
 *  a: 乘数
 *  b: 乘数
 *  n: a的长度
 *  m: b的长度
 * 没有返回值，结果直接放到全局变量res数组中，如果不想要全]]></description><category></category></item><item><title><![CDATA[实现异常安全性（55）]]></title><link>https://blog.csdn.net/Allendale/article/details/8947116</link><guid>https://blog.csdn.net/Allendale/article/details/8947116</guid><author>Allendale</author><pubDate>Sun, 19 May 2013 16:32:58 +0800</pubDate><description><![CDATA[题目：类CMyString的声明如下：
class CMyString
{
public:
      CMyString(char* pData = NULL);
      CMyString(const CMyString& str);
      ~CMyString(void);
      CMyString& operator = (const CMyString& s]]></description><category></category></item><item><title><![CDATA[打印出字符串中字符的所有排列]]></title><link>https://blog.csdn.net/Allendale/article/details/8947103</link><guid>https://blog.csdn.net/Allendale/article/details/8947103</guid><author>Allendale</author><pubDate>Sun, 19 May 2013 16:24:56 +0800</pubDate><description><![CDATA[53.字符串的排列。
题目：输入一个字符串，打印出该字符串中字符的所有排列。
例如输入字符串abc，则输出由字符a、b、c所能排列出来的所有字符串
abc、acb、bac、bca、cab和cba。
分析：这是一道很好的考查对递归理解的编程题，
因此在过去一年中频繁出现在各大公司的面试、笔试题中。
 
#include
#include
/*
输入一个字符串，打印出该字符串中字符的所有]]></description><category></category></item><item><title><![CDATA[序列a元素的和与序列b元素的和之间的差最小（32）]]></title><link>https://blog.csdn.net/Allendale/article/details/8947071</link><guid>https://blog.csdn.net/Allendale/article/details/8947071</guid><author>Allendale</author><pubDate>Sun, 19 May 2013 16:20:23 +0800</pubDate><description><![CDATA[32.
有两个序列a,b，大小都为n,序列元素的值任意整数，无序；
要求：通过交换a,b中的元素，使序列a元素的和与序列b元素的和之间的差最小。
例如:  
var a=[100,99,98,1,2, 3];
var b=[1, 2, 3, 4,5,40];
 
/*
  Name: 
  Copyright: 
  Author: 
  Date: 20-06-11 08:22]]></description><category></category></item><item><title><![CDATA[在从1到n的正数中1出现的次数（30）]]></title><link>https://blog.csdn.net/Allendale/article/details/8947002</link><guid>https://blog.csdn.net/Allendale/article/details/8947002</guid><author>Allendale</author><pubDate>Sun, 19 May 2013 16:02:00 +0800</pubDate><description><![CDATA[30.在从1到n的正数中1出现的次数
题目：输入一个整数n，求从1到n这n个整数的十进制表示中1出现的次数。
例如输入12，从1到12这些整数中包含1 的数字有1，10，11和12，1一共出现了5次。
分析：这是一道广为流传的google面试题。
 
/*
  Name: 
  Copyright: 
  Author: 
  Date: 17-06-11 08:10
Descripti]]></description><category></category></item><item><title><![CDATA[栈的push、pop序列（29）]]></title><link>https://blog.csdn.net/Allendale/article/details/8946982</link><guid>https://blog.csdn.net/Allendale/article/details/8946982</guid><author>Allendale</author><pubDate>Sun, 19 May 2013 15:51:50 +0800</pubDate><description><![CDATA[29.栈的push、pop序列
题目：输入两个整数序列。其中一个序列表示栈的push顺序，
判断另一个序列有没有可能是对应的pop顺序。
为了简单起见，我们假设push序列的任意两个整数都是不相等的。  
比如输入的push序列是1、2、3、4、5，那么4、5、3、2、1就有可能是一个pop系列。
因为可以有如下的push和pop序列：
push 1，push 2，push 3，pus]]></description><category></category></item><item><title><![CDATA[整数的二进制表示中1的个数（28）]]></title><link>https://blog.csdn.net/Allendale/article/details/8946935</link><guid>https://blog.csdn.net/Allendale/article/details/8946935</guid><author>Allendale</author><pubDate>Sun, 19 May 2013 15:35:17 +0800</pubDate><description><![CDATA[28.整数的二进制表示中1的个数
题目：输入一个整数，求该整数的二进制表达中有多少个1。
例如输入10，由于其二进制表示为1010，有两个1，因此输出2。
分析：
这是一道很基本的考查位运算的面试题。
包括微软在内的很多公司都曾采用过这道题。
 
/*
  Name: 
  Copyright: 
  Author: 
  Date: 16-06-11 20:35
  Descrip]]></description><category></category></item><item><title><![CDATA[跳台阶问题（27）]]></title><link>https://blog.csdn.net/Allendale/article/details/8946889</link><guid>https://blog.csdn.net/Allendale/article/details/8946889</guid><author>Allendale</author><pubDate>Sun, 19 May 2013 15:28:05 +0800</pubDate><description><![CDATA[27.跳台阶问题
题目：一个台阶总共有n级，如果一次可以跳1级，也可以跳2级。
求总共有多少总跳法，并分析算法的时间复杂度。
这道题最近经常出现，包括MicroStrategy等比较重视算法的公司
都曾先后选用过个这道题作为面试题或者笔试题。
 
/*
  Name: 
  Copyright: 
  Author: 
  Date: 16-06-11 19:55
  Descript]]></description><category></category></item><item><title><![CDATA[左旋转字符串(26)]]></title><link>https://blog.csdn.net/Allendale/article/details/8946872</link><guid>https://blog.csdn.net/Allendale/article/details/8946872</guid><author>Allendale</author><pubDate>Sun, 19 May 2013 15:13:13 +0800</pubDate><description><![CDATA[26.左旋转字符串
题目：
定义字符串的左旋转操作：把字符串前面的若干个字符移动到字符串的尾部。
如把字符串abcdef左旋转2位得到字符串cdefab。请实现字符串左旋转的函数。
要求时间对长度为n的字符串操作的复杂度为O(n)，辅助内存为O(1)。
 
#include
#include
using namespace std;

void reverse(char *s,cons]]></description><category></category></item><item><title><![CDATA[在字符串中找出连续最长的数字串(25)]]></title><link>https://blog.csdn.net/Allendale/article/details/8946865</link><guid>https://blog.csdn.net/Allendale/article/details/8946865</guid><author>Allendale</author><pubDate>Sun, 19 May 2013 15:07:54 +0800</pubDate><description><![CDATA[第25题：
写一个函数,它的原形是int continumax(char *outputstr,char *intputstr)
功能：
在字符串中找出连续最长的数字串，并把这个串的长度返回，
并把这个最长数字串付给其中一个函数参数outputstr所指内存。
例如："abcd12345ed125ss123456789"的首地址传给intputstr后，函数将返回9，
outputst]]></description><category></category></item><item><title><![CDATA[n个数字（0,1,…,n-1）形成一个圆圈，从数字0开始（18）]]></title><link>https://blog.csdn.net/Allendale/article/details/8944039</link><guid>https://blog.csdn.net/Allendale/article/details/8944039</guid><author>Allendale</author><pubDate>Sat, 18 May 2013 15:13:40 +0800</pubDate><description><![CDATA[第18题：
题目：n个数字（0,1,…,n-1）形成一个圆圈，从数字0开始，
每次从这个圆圈中删除第m个数字（第一个为当前数字本身，第二个为当前数字的下一个数字）。
当一个数字删除后，从被删除数字的下一个继续删除第m个数字。
求出在这个圆圈中剩下的最后一个数字。

 
/*
  Name: 
  Copyright: 
  Author: 
  Date: 15-06-11 14:1]]></description><category></category></item></channel></rss>