<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[拂晓]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/freedomcheng</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; freedomcheng]]></copyright><item><title><![CDATA[数独]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/45913725</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/45913725</guid><author>freedomcheng</author><pubDate>Fri, 22 May 2015 10:10:25 +0800</pubDate><description><![CDATA[13年9月25号写的数独程序，虽然不怎么高大上，不过还是记录下。。
#include
#include
#include
#include
using namespace std;

//每行、列、小九宫中未用数字
setset_row[9];
setset_col[9];
setset_area[9];

char grid[10][10];

//保存正在尝试的填充
struct stak]]></description><category></category></item><item><title><![CDATA[一个delete和析构函数引发的coredump]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/45114753</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/45114753</guid><author>freedomcheng</author><pubDate>Sat, 18 Apr 2015 17:22:09 +0800</pubDate><description><![CDATA[在一段代码中写了一段类似这样的代码：
std::map data2itor;
std::multimap tim2data;
用tim来定时删除过期数据，正常删除时由data2itor中的second确定在tim2data中的位置从而删除，超时时由time2data确定超时数据，进行删除，数据是一个结构体的指针，在超时的时候要对结构体进行delete，但是在delete的时候在析构函数里做了]]></description><category></category></item><item><title><![CDATA[记录一例内存泄漏]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/42294211</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/42294211</guid><author>freedomcheng</author><pubDate>Wed, 31 Dec 2014 14:03:39 +0800</pubDate><description><![CDATA[C++中基类的析构函数一直被要求写为virtual，是为了让子类正确的释放其实分配的空间，以前一直觉得主要是new出来的内存需要释放，这几天遇到一个内存泄漏问题，起因是new了子类对象，赋值给基类指针，但基类忘记写virtual的析构函数了，第一次将基类析构函数不写成virtual的效果由理论转成了实践，发现原来不只动态分配的内存需要子类的析构函数去释放，valgrind检查后发现包括原子类型的内]]></description><category></category></item><item><title><![CDATA[pure virtual method called]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/42173517</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/42173517</guid><author>freedomcheng</author><pubDate>Fri, 26 Dec 2014 16:38:24 +0800</pubDate><description><![CDATA[记录一个编写多线程程序时遇到的运行时错误：pure virtual method called
起因是写了一个多线程基类，里面有一个纯虚函数run,子类继承了这个run，重点就在纯虚函数上，因为是在基类中构造时创建的线程，线程创建后直接运行run函数，而这时子类尚未构造，所以run函数此时依旧是纯虚函数，就会出现pure virtual method called这个错误而终止运行，感谢http]]></description><category></category></item><item><title><![CDATA[13个mysql数据库的实用SQL小技巧]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/15338933</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/15338933</guid><author>freedomcheng</author><pubDate>Mon, 11 Nov 2013 15:23:01 +0800</pubDate><description><![CDATA[MYSQL作为最成功的开源关系型数据库之一，拥有大批的粉丝（本人也是），在这篇文章中，我们精心收集了10个最实用的mysql查询技巧，希望能够带给大家惊喜，如果大家也有非常不错的SQL，请留言与我们分享！

 相关阅读：SQL  ，MYSQL

使用CASE来重新定义数值类型
SELECT id,title,   (CASE date WHEN '0000-00-00' THEN '' ]]></description><category></category></item><item><title><![CDATA[让程序员最头疼的事儿是什么？给变量起个有意义的名字]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/14073791</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/14073791</guid><author>freedomcheng</author><pubDate>Sat, 02 Nov 2013 20:13:11 +0800</pubDate><description><![CDATA[这是一个来自Quora的问题，“起有意义的变量名”得票最多，其他一些头疼的事儿还有：


向家人解释自己从事的工作究竟是什么
估计任务完成的时程
理解没有注释的大段代码
完成自己不认同的功能
必须碰别人的糟糕代码（这可能是因果报应）
写详尽的文档
写测试]]></description><category></category></item><item><title><![CDATA[code::blocks编译多文件]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/8752203</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/8752203</guid><author>freedomcheng</author><pubDate>Tue, 02 Apr 2013 16:52:08 +0800</pubDate><description><![CDATA[code::blocks是一款据说灰常强大的IDE，以前虽然也经常使用，但一没用过高度功能，二来没用它写过工程性的东西，简单点说就是一个以上的源文件并且加入其他非标准的头文件，今天想做一个多文件的语法的测试，用的CB，结果却非常不幸的无法编译过，在主函数里调用另一个源文件里的函数，却提示没有定义的引用，若干分钟后终于找出原因：
在Manager窗口（就是源文件、头文件等文件的列表窗口）里，在定义]]></description><category></category></item><item><title><![CDATA[浅谈 div 与 table 如何取舍结合利用]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/8362283</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/8362283</guid><author>freedomcheng</author><pubDate>Fri, 21 Dec 2012 08:04:43 +0800</pubDate><description><![CDATA[和webpage打交道起页面布局就一直是我关注的内容，从早期table构架页面到DIV再到DIV＋Table，可以说我们的需求一直在变，但是目的一直没有改变。为什么这么说，很明显从简单到复杂，再从复杂到简单；从简单运用到复杂运用；一切都是围绕需求性来做的。很多开发设计人员在从事页面布局开发的时候都要考虑到几点：布局是否合理，结构是否紧凑，是否有充分的扩展性，可读性是否强。而合理使用Table和DI]]></description><category></category></item><item><title><![CDATA[解决HDU爆栈的问题 .]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/7962501</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/7962501</guid><author>freedomcheng</author><pubDate>Mon, 10 Sep 2012 10:58:44 +0800</pubDate><description><![CDATA[转载：http://forum.byr.edu.cn/article/ACM_ICPC/51264
 
大家懂的，鉴于HDU用的是windows服务器，所以stack大小及其坑爹，稍微深一点的递归栈就会stack overflow。 
通常的规避方法是用stack或者手写stack模拟栈的递归过程。这个极其蛋疼啊，而且被卡了STL也很得不偿失唉。（话说这一切都是基于非现场赛来说的，现场赛怎么]]></description><category></category></item><item><title><![CDATA[虚函数的实现机制]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/7932652</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/7932652</guid><author>freedomcheng</author><pubDate>Sat, 01 Sep 2012 17:07:11 +0800</pubDate><description><![CDATA[C++中的虚函数的作用主要是实现了多态的机制。关于多态，简而言之就是用父类型别的指针指向其子类的实例，然后通过父类的指针调用实际子类的成员函数。这种技术可以让父类的指针有“多种形态”，这是一种泛型技术。所谓泛型技术，说白了就是试图使用不变的代码来实现可变的算法。比如：模板技术，RTTI技术，虚函数技术，要么是试图做到在编译时决议，要么试图做到运行时决议。

关于虚函数的使用方法，我在这里不做过]]></description><category></category></item><item><title><![CDATA[读懂diff]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/7922969</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/7922969</guid><author>freedomcheng</author><pubDate>Thu, 30 Aug 2012 09:53:48 +0800</pubDate><description><![CDATA[读懂diff
作者: 
阮一峰  发布时间: 2012-08-30 06:46  阅读: 53 次  原文链接  
全屏阅读　 
[收藏]   


　　diff 是 Unix 系统的一个很重要的工具程序。
　　它用来比较两个文本文件的差异，是代码版本管理的基石之一。你在命令行下，输入：

$ diff  

　　diff 就会告诉你，这两个文件有何差异。它的显示结果不太好]]></description><category></category></item><item><title><![CDATA[ZOJ 3642]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/7917369</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/7917369</guid><author>freedomcheng</author><pubDate>Tue, 28 Aug 2012 18:40:00 +0800</pubDate><description><![CDATA[Just Another Information Sharing Problem

Time Limit: 2 Seconds      
Memory Limit: 65536 KB 

There is going to be another test in the kindergarten. Again the teacher has already told every kid]]></description><category></category></item><item><title><![CDATA[ZJU 3633]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/7913784</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/7913784</guid><author>freedomcheng</author><pubDate>Mon, 27 Aug 2012 21:14:22 +0800</pubDate><description><![CDATA[Alice's present

Time Limit: 5 Seconds      
Memory Limit: 65536 KB 

As a doll master, Alice owns a wide range of dolls, and each of them has a number tip on it's back, the tip can be treated as]]></description><category></category></item><item><title><![CDATA[POJ 3084 最大流]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/7911903</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/7911903</guid><author>freedomcheng</author><pubDate>Mon, 27 Aug 2012 14:04:43 +0800</pubDate><description><![CDATA[Panic Room




Time Limit: 1000MS
 
Memory Limit: 65536K


Total Submissions: 1592
 
Accepted: 789




Description
You are the lead programmer for the Securitron 9042, the latest and]]></description><category></category></item><item><title><![CDATA[POJ 1182 食物链]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/7895956</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/7895956</guid><author>freedomcheng</author><pubDate>Wed, 22 Aug 2012 15:13:19 +0800</pubDate><description><![CDATA[食物链




Time Limit: 1000MS
 
Memory Limit: 10000K


Total Submissions: 30668
 
Accepted: 8944




Description
动物王国中有三类动物A,B,C，这三类动物的食物链构成了有趣的环形。A吃B， B吃C，C吃A。 
现有N个动物，以1－N编号。每个动物都是A,]]></description><category></category></item><item><title><![CDATA[POJ 1797 Heavy Transportation]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/7895331</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/7895331</guid><author>freedomcheng</author><pubDate>Wed, 22 Aug 2012 13:18:14 +0800</pubDate><description><![CDATA[Heavy Transportation




Time Limit: 3000MS
 
Memory Limit: 30000K


Total Submissions: 15562
 
Accepted: 4044




Description
Background 
Hugo Heavy is happy. After the breakdown o]]></description><category></category></item><item><title><![CDATA[POJ 2396 上下界可行流]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/7894345</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/7894345</guid><author>freedomcheng</author><pubDate>Wed, 22 Aug 2012 09:44:59 +0800</pubDate><description><![CDATA[Budget




Time Limit: 3000MS
 
Memory Limit: 65536K


Total Submissions: 4378
 
Accepted: 1679
 
Special Judge




Description
We are supposed to make a budget proposal for this m]]></description><category></category></item><item><title><![CDATA[POJ 3422 卡卡的矩阵之旅 最大费用流]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/7894253</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/7894253</guid><author>freedomcheng</author><pubDate>Wed, 22 Aug 2012 09:43:23 +0800</pubDate><description><![CDATA[Kaka's Matrix Travels




Time Limit: 1000MS
 
Memory Limit: 65536K


Total Submissions: 5806
 
Accepted: 2266




Description

On an N × N chessboard with a non-negative number in]]></description><category></category></item><item><title><![CDATA[HDU 2489]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/7815521</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/7815521</guid><author>freedomcheng</author><pubDate>Tue, 31 Jul 2012 18:25:24 +0800</pubDate><description><![CDATA[题目：
Minimal Ratio Tree
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1140    Accepted Submission(s): 348



Problem Description
For a]]></description><category></category></item><item><title><![CDATA[ZJU 2588 割边]]></title><link>https://blog.youkuaiyun.com/freedomcheng/article/details/7804902</link><guid>https://blog.youkuaiyun.com/freedomcheng/article/details/7804902</guid><author>freedomcheng</author><pubDate>Tue, 31 Jul 2012 10:59:57 +0800</pubDate><description><![CDATA[ZOJ2588找割边，将重边看成回边，用一个数组标记一个边号是否是割边，开始这个数组开成点数的大小了，WA了一天没找到  超级巨囧~~~
//problem_id zoj 2588

#include
#include
#include
#include
#include
#include
#include
#include
#include
#include

usi]]></description><category></category></item></channel></rss>