<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[天之枫 的专栏]]></title><description><![CDATA[闲看庭前花开花落 漫随天外云卷云舒]]></description><link>https://blog.youkuaiyun.com/leaf1984zh</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; leaf1984zh]]></copyright><item><title><![CDATA[多年前收藏的一段变态的C程序]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/6440591</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/6440591</guid><author>leaf1984zh</author><pubDate>Mon, 23 May 2011 19:31:00 +0800</pubDate><description><![CDATA[这是很多年前遇到的一段变态的C代码，不知道是哪位高人写的到目前为止，我仍然没看懂（主要是太懒了，扔在角落里多年没去过问 -_-!! ）今天偶然间把它翻了出来，想请教高人指点一下，这段代码到底该怎么解读？顺便也虐一下小白们~~~代码我试过的，可以通过编译（包括VC6、VC2008、Gcc3.4、Gcc4.4等平台）再说下，这是C程序，文件名是 " .c " 的啊！#include 
main(t,_,a)char *a;{return!0]]></description><category></category></item><item><title><![CDATA[调整了分区大小ghost出现无法进入系统的问题]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/6262401</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/6262401</guid><author>leaf1984zh</author><pubDate>Sun, 20 Mar 2011 10:46:00 +0800</pubDate><description><![CDATA[<br />这个问题如果没遇到过的话 也是挺麻烦的<br />要解决也很简单<br /> <br />废话少说，方法如下：使用PQ再次进入分区，记得要把你刚刚分出来C盘激活哈，激活后系统就知道C盘是引导分区了，否则就算有系统文件也读不出来；<br /> <br />如何激活C盘呢？嘿嘿，在PQ下把C盘设置为“作业”状态（默认是“无”）就OK了！<br /> <br />很简单哈，备份一个在这儿。<br /> <br />总结，原来对硬盘分区后还要激活！（用了那么多年的计算机，才知道，真想找块豆腐撞死）]]></description><category></category></item><item><title><![CDATA[C语言实现递归删除文件夹及文件]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/6232004</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/6232004</guid><author>leaf1984zh</author><pubDate>Tue, 08 Mar 2011 16:31:00 +0800</pubDate><description><![CDATA[

// 实现递归删除文件及文件夹
// 该程序不能删除只读文件

#include 
#include 
#include 
#include    
#include   
#include 
#include 


#define MAXPATH 256

//=========================================================
int Create(const char * rootpath)
{
	struct _]]></description><category></category></item><item><title><![CDATA[C语言实现的创建多线程]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/6231956</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/6231956</guid><author>leaf1984zh</author><pubDate>Tue, 08 Mar 2011 16:20:00 +0800</pubDate><description><![CDATA[<br /> <br />本文是在Windows下实现的编码，在Win下创建多线程的库函数是 _beginthread() ,  而Linux下则是 beginthread()。<br />微软把标准中所提到的很多库函数都加了一根下划线。<br /> <br />#include "stdafx.h"
#include <process.h> // _beginthread && _endthread
#include "BaseOperation.h"

int main()
{
	sys_m]]></description><category></category></item><item><title><![CDATA[如何实现Windows下的键盘监听]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/6231882</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/6231882</guid><author>leaf1984zh</author><pubDate>Tue, 08 Mar 2011 16:01:00 +0800</pubDate><description><![CDATA[<br />要实现键盘监听，有很多办法，本例程是使用的钩子程序实现的。<br /> <br />首先要建立一个动态库，源码如下（该源码来自网络，并非本人作品）：<br /> <br />hookdll.cpp<br />#include <windows.h>
#include <time.h>
#include "string.h"
#include "stdio.h"  
HINSTANCE hInst;
//创造数据段
//#pragma 语句之后的所有初始化的变量都进入hookdata段]]></description><category></category></item><item><title><![CDATA[如何通过预定义确定编译平台]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/6231845</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/6231845</guid><author>leaf1984zh</author><pubDate>Tue, 08 Mar 2011 15:49:00 +0800</pubDate><description><![CDATA[<br />常量由操作系统或编译平台定义，在编译时用于确定编译平台。<br />以下代码在VC6及VC2008下测试通过。<br />测试时间：2011-3-7<br /> <br />// 常量由操作系统或编译平台定义，在编译时用于确定编译平台

#include <stdio.h>

int main()
{
	#ifdef	__OpenBSD__
	    printf("OpenBSD/n");
	#elif	__FreeBSD__
	    printf("FreeBSD/n")]]></description><category></category></item><item><title><![CDATA[Remarks on Cyber at the RSA Conference]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/6227817</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/6227817</guid><author>leaf1984zh</author><pubDate>Sun, 06 Mar 2011 22:54:00 +0800</pubDate><description><![CDATA[Remarks on Cyber at the RSA ConferenceAs Delivered by William J. Lynn, III, San Francisco, California, Tuesday, February 15, 2011Thank you again to RSA for recognizing the Defense Department’s contributions to cyber policy.This is without question the most]]></description><category></category></item><item><title><![CDATA[Ubuntu下更改gcc版本的简便方法]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/6144019</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/6144019</guid><author>leaf1984zh</author><pubDate>Sun, 16 Jan 2011 11:20:00 +0800</pubDate><description><![CDATA[// 首先须移除原有的gcc快捷方式，然后把新安装的gcc指定到原有的位置
// 该方法在9.04、10.10下测试可用
# rm /usr/bin/gcc
# ln -s /usr/bin/gcc-3.4 /usr/bin/gcc    其实当你到 /usr/bin 目录下ls时，你就会发现Linux的设置思想竟然如此简单方便，所以如果要降低g++的版本的话，方便也是类似的，^_^ 哈哈～～]]></description><category></category></item><item><title><![CDATA[Code::Blocks的IDE环境基础配置]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/6143976</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/6143976</guid><author>leaf1984zh</author><pubDate>Sun, 16 Jan 2011 11:06:00 +0800</pubDate><description><![CDATA[<br />File菜单<br />New：新建（Empty
file/file、class、project、build
target）。<br />Recent
projects/files：最近打开的项目/文件。<br />Import
projects：Dev-C++
Project、VC6
dsw/dsp、VC8
vcproj/sln。<br />Ctrl+Shift+S：Save
all files。<br />Save workspace
(as)：将多个项目组织成一个工作空间]]></description><category></category></item><item><title><![CDATA[C语言中的作用域和生命周期]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/5964256</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/5964256</guid><author>leaf1984zh</author><pubDate>Mon, 25 Oct 2010 15:37:00 +0800</pubDate><description><![CDATA[C语言中的作用域和生存周期Author：天之枫    在C语言中，涉及到作用域和生存周期的问题，大多是指的变量和函数。         C语言中用得最多的应当算是局部变量了，而局部变量的作用域一般认为在函数体内有效。局部变量的内存分配管理和销毁是由编译器来实现的，程序编写者不用考虑其实现细节。当函数执行完成返回时，局部变量将全部被销毁，这决定了其生存周期。这里涉及到返回值的问题，至于是在返回值传递完成之后销毁呢，还是将返回值拷贝到一个临时变量中，销毁全部的局部变量，再将临时变量返回呢，这是由编译器的设计者所]]></description><category></category></item><item><title><![CDATA[单链表的创建及其反转函数]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/5744448</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/5744448</guid><author>leaf1984zh</author><pubDate>Sun, 18 Jul 2010 16:16:00 +0800</pubDate><description><![CDATA[

/**
 * @author:	J.S.Leaf 
 * @workname:	单链表    
 * @env:		VC9.0
 * @time:		2010-07-18 
 */

// 增加了反转函数的三种实现方法，并且修改了原版本的指针问题

#include 
#include 
#include 

typedef struct LNode{
    char           data;
    struct  LNode  *next;
}LNode,]]></description><category></category></item><item><title><![CDATA[Windows下的chcp命令（更改该控制台的活动控制台代码页）]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/5658686</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/5658686</guid><author>leaf1984zh</author><pubDate>Wed, 09 Jun 2010 15:58:00 +0800</pubDate><description><![CDATA[<br />Chcp <br />显示活动控制台代码页数量，或更改该控制台的活动控制台代码页。如果在没有参数的情况下使用，则 chcp 显示活动控制台代码页的数量。 <br />语法 <br />chcp [nnn] <br />参数 <br />指定代码页。下表列出了所有支持的代码页及其国家(地区)或者语言： <br />代码页       国家(地区)或语言 <br />437          美国 <br />708          阿拉伯文(ASMO 708)<br />720         ]]></description><category></category></item><item><title><![CDATA[内置变量列表（Unix）]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/5655876</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/5655876</guid><author>leaf1984zh</author><pubDate>Tue, 08 Jun 2010 15:38:00 +0800</pubDate><description><![CDATA[<br />============================================<br /><br />$- 当前页可打印的行数,属于Perl格式系统的一部分 <br />$! 根据上下文内容返回错误号或者错误串 <br />$” 列表分隔符 <br />$# 打印数字时默认的数字输出格式 <br />$$ Perl解释器的进程ID <br />$% 当前输出通道的当前页号 <br />$& 与上个格式匹配的字符串 <br />$( 当前进程的组ID <br />$) 当前进程的有效组I]]></description><category></category></item><item><title><![CDATA[MG-SOFT MIB Browser Pro. for Windows ]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/5655850</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/5655850</guid><author>leaf1984zh</author><pubDate>Tue, 08 Jun 2010 15:32:00 +0800</pubDate><description><![CDATA[MG-SOFT MIB Browser Professional Edition with MIB Compiler is an extremely flexible, technically superb, powerful and user-friendly SNMP Browser. All that makes MG-SOFT MIB Browser the most widely used SNMP Browser running on Microsoft Windows operating sy]]></description><category></category></item><item><title><![CDATA[Ruby解析XML文件]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/5652728</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/5652728</guid><author>leaf1984zh</author><pubDate>Mon, 07 Jun 2010 12:40:00 +0800</pubDate><description><![CDATA[Ruby是一款对开发版本依赖度很高的语言，而且目前不支持中文（如果要使用中文字符，可使用UTF-8）以下程序在 Ruby 1.8.6 下编译通过, IDE环境为 RubyMine [比NetBean好用]
# 解析XML文件

require "rexml/document"
include REXML
puts "-- BEGIN --"
doc = Document.new(File.open("TestXML.xml"))
#doc.elements.each('BoardComposa]]></description><category></category></item><item><title><![CDATA[Linux下使用SSH和VNC实现图形化远程控制（Ubuntu 9.04环境）]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/5642945</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/5642945</guid><author>leaf1984zh</author><pubDate>Wed, 02 Jun 2010 17:43:00 +0800</pubDate><description><![CDATA[1、配置网卡    在Ubuntu中配置网卡很简
单，只需要打开/etc/network/interfaces文件，将你想设置静态IP的那个网卡的IP配置信息保存起来就可以了，动态获取的不需要配置。 auto eth1  iface eth1 inet static
  address 172.20.54.111netmask 255.255
.255.0
  network 172.20.54.1    记得要重启网卡      /etc/init.d/networking restart    ]]></description><category></category></item><item><title><![CDATA[Linux下tar命令实用参数简解]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/5640155</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/5640155</guid><author>leaf1984zh</author><pubDate>Tue, 01 Jun 2010 17:49:00 +0800</pubDate><description><![CDATA[tar 
-c: 建立压缩档案 
-x：解压 
-t：查看内容 
-r：向压缩归档文件末尾追加文件 
-u：更新原压缩包中的文件 
这五个是独立的命令，压缩解压都要用到其中一个，可以和别的命令连用但只能用其中一个。下面的参数是根据需要在压缩或解压档案时可选的。 
-z：有gzip属性的 
-j：有bz2属性的 
-Z：有compress属性的 
-v：显示所有过程 
-O：将文件解开到标准输出 
下面的参数-f是必须的 
-f: 使用档案名字，切记，这个参数是最后一个参数，后面只能]]></description><category></category></item><item><title><![CDATA[C中enum类型成员的参数变化]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/5623150</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/5623150</guid><author>leaf1984zh</author><pubDate>Tue, 25 May 2010 16:29:00 +0800</pubDate><description><![CDATA[enum类型的成员，默认情况下是从0开始赋值； 如果中间某个成员进行了手动赋值的话，该成员的下一个成员的值为该成员的值+1 #include typedef enum {		PLAYMODE = 1,	// 默认从0开始		PAUSEMODE,		STOPMODE = 5,		TRACKRPTMODE,		MIXMODE}Status_t; in]]></description><category></category></item><item><title><![CDATA[一段用来判断日期是星期几的C代码]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/5495944</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/5495944</guid><author>leaf1984zh</author><pubDate>Sat, 17 Apr 2010 10:21:00 +0800</pubDate><description><![CDATA[ /////////////////////////////////////////////////// 主题：一段用来判断日期是星期几的代码// 描述：摘自《CCFAQ》// 作者：天之枫// 时间：2010-02-13/////////////////////////////////////////////////  #include int dayofweek(int]]></description><category></category></item><item><title><![CDATA[关于补码计算的一个实例]]></title><link>https://blog.youkuaiyun.com/leaf1984zh/article/details/5495794</link><guid>https://blog.youkuaiyun.com/leaf1984zh/article/details/5495794</guid><author>leaf1984zh</author><pubDate>Sat, 17 Apr 2010 09:27:00 +0800</pubDate><description><![CDATA[/////////////////////////////////////////////////// 主题：关于补码计算的一个实例// 描述：// 作者：天之枫// 时间：2010-04-11///////////////////////////////////////////////// 补码（二补数）http://zh.wikipedia.org/zh-cn/%E4%BA%8C%]]></description><category></category></item></channel></rss>