自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

LX的专栏

信仰 耐心 坚毅 放松 勇敢

  • 博客(22)
  • 资源 (22)
  • 收藏
  • 关注

转载 ubuntu 快捷键

<br />一个系统用久了,总会用到许多快捷键,可能大家对win下的快捷键比对linux下的要熟悉一些,所以,我打算整理一些快捷键的说明。<br />1.关于终端的快捷键:<br />Tab:tab键是比较常用的一个快捷键,它的作用是补全文件名或者路径。举例来说,输入”cd/ho”在按一下tab键,终端里就会显示”cd/home”了。如果您的文件夹下,有两个名字开头部分相同的文件,比如有”picture001.bmp”和”picture002.bmp”两个文件,输入”rm pic”以后按下tab

2010-10-26 19:53:00 458

转载 ubuntu屏幕截图工具:scrot,可截鼠标拖曳的矩形区域图形

<br />无论是撰写技术教程,还是展示桌面或应用,恐怕 scrot(0.8) 都是必不可少的ubuntu屏幕截图工具。scrot 是liunx屏幕抓图工具中的皎皎佼佼者,它小巧而不失为强大,精练而不缺少灵活。(我是从硬盘安装Ubuntu 8.04.1,所以下面操作是在Ubuntu 8.04.1下完成。)<br />scrot 主要用在命令行下,它使用 imlib2 库来抓取并保存图像。在 Ubuntu 中,可以使用 sudo apt-get install scrot 命令来安装 sc

2010-10-26 15:41:00 473

原创 时间

<br />每天总是感觉时间如此紧迫<br />感觉学的东西那么少。<br /> <br />我太急躁了<br />太急功近利<br />世界上没有事情是又好又快的<br /> <br />多一点安心 <br />少一点紧张<br /> 

2010-10-20 23:48:00 285

原创 linux 下 shell 学习摘要(一)

1.命令代换:`或 $() <br />由反引号括起来的也是一条命令,Shell先执行该命令,然后将输出结果立刻代换到当前命令行中。例如定义一个变量存放date命令的输出:$ DATE=`date`<br />$ echo $DATE<br />命令代换也可以用$()表示:$ DATE=$(date)2.本地变量<br />只存在于当前Shell进程,用set命令可以显示当前Shell进程中定义的所有变量(包括本地变量和环境变量)和函数。<br />环境变量是任何进程都有的概念,而本地变量是

2010-10-14 17:32:00 486

原创 Linux下 局域网管理软件

<br />1实现对局域网内的计算机流量进行查看

2010-10-10 14:30:00 1155

转载 PE文件导入表

<br />   在上一篇文章里,我使用一个 TreeList 控件,展示了 PE 文件的内容。在那里可充分了解PE的文件头的信息,但是对 section(备注:常见译文为节,段,块)的一些信息我们还没有涉及。比如全局变量等数据,代码,资源,导入表等信息都位于相应的 section 中,有些 section 通常具有特定的名字,例如资源通常位于 .rsrc,代码通常位于 .text,导入表通常位于 .idata 段,等等。文本讲述的是把一个PE文件的导入表打印出来。我注意到 MS 提供了一个

2010-09-26 22:06:00 998

原创 HEAPSORT(A) P136

<br />//@lx HEAPSORT(A) p136<br />//time: 2010-9-13<br /><br />#include "stdafx.h"<br />#include <iostream><br />#include <vector><br /><br />using namespace std;<br />template <class T><br />inline void PRINT_ELEMENTS(const T& col1, const ch

2010-09-13 19:43:00 439

原创 Sina App Engine

<br />用新浪的SAE做了一个简单的网页,还是蛮高兴的。 只是只有他支持PHP, 微软的要收费 。。。。。。。。

2010-09-13 18:55:00 381

原创 BUILD-MAX-HEAP(A) P133

<br />//@lx BUILD-MAX-HEAP p133<br />//time: 2010-9-8<br /><br />#include "stdafx.h"<br />#include <iostream><br />#include <vector><br /><br />using namespace std;<br />template <class T><br />inline void PRINT_ELEMENTS(const T& col1, const

2010-09-13 18:52:00 590

原创 获得主机名 和 IP地址

<br />1.获得主机名<br />//获得主机名<br />    gethostname(szHostName, 128);<br />    CString str;<br /><br />    for(int i = 0; i <= 128; i++)<br />    {<br />        if(szHostName[i] != '/0')<br />            str.Insert(i,szHostName[i]);<br /><br />  

2010-09-11 18:00:00 419

原创 Main the heap property

<br />//@lx time:2010-09-08 P130 <br />//Maintaining the heap property<br /><br />#include "stdafx.h"<br />#include <iostream><br />#include <vector><br /><br />using namespace std;<br />template <class T><br />inline void PRINT_ELEMENTS(cons

2010-09-08 14:33:00 291

原创 插入排序

<br />// algINSERTIONSORT.cpp : 定义控制台应用程序的入口点。<br />//<br />//算法导论 P17 2010.09.07 @lx<br /><br />#include "stdafx.h"<br />#include <vector><br />#include <iostream><br />using namespace std;<br /><br />template<class T><br />inline void Ins

2010-09-07 16:30:00 375

转载 如何获得指针 在文档视图中

<br />CWinApp * AfxGetApp()是一个全局函数,在任何地方都可以获得C***App类对象的指针. <br />//在C***App类中: <br />获得CMainFrame类对象的指针: CMainFrame* pMain=(CMainFrame*)CWinThread::m_pMainWnd; <br />获得C***View类对象的指针:<br />(假设只有一个视图,须通过CMainFrame)<br /> C***View *pView=(C***View *)((CMain

2010-09-04 21:24:00 486

转载 VC常见错误

<br />1、fatal error C1010: unexpected end of file while looking for precompiled header directive。<br />寻找预编译头文件路径时遇到了不该遇到的文件尾。(一般是没有#include "stdafx.h") <br />2、fatal error C1083: Cannot open include file: 'R…….h': No such file or directory<br />不能打开包含文件“R

2010-09-04 21:23:00 312

原创 网络爬虫项目(1)

<br />已经实现下载网页,已经分析URL。<br />要实现的:1.对这些网址进行存储 2.开启多线程进行下载<br /> 

2010-09-04 19:26:00 301

原创 创建线程

<br />class CSpiderThread : public CWinThread<br />{<br />public:<br />    CSpiderThread(AFX_THREADPROC pfnThreadProc,ThreadParams *pThreadParams);     <br />    virtual ~CSpiderThread();<br /><br />    static UINT ThreadFunc(LPVOID lparam);<br /

2010-08-25 15:16:00 432

原创 Lazy Data Types in C++ Template Metaprograms by Adam Sipos, Norbert Pataki, and Zoltan Porkolab

<br />C++ supports among others the generative paradigm by enabling the creation of programs executed in compile-time.This is called template metaprogramming(TMP), and is based on the language's flexible generic constructl, the<br />template.<br />One of t

2010-08-25 13:03:00 454

原创 C++ Programming Styles and Libraries by Bjarne Stroustrup

<br /><!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;}

2010-08-24 13:11:00 375

转载 MFC 类型识别与动态创建

<br /><br />If you have derived your class from< id="alink_3" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">CObject and used the DECLARE_DYNAMIC and IMPLEMENT_DYNAMIC, the DECLARE_DYNCREATE and IMPLEMEN

2010-08-18 19:48:00 1492

原创 对临界区的使用

<br />class CriticalSectionLock<br />{<br />public:<br />    CriticalSectionLock()<br />    {<br /><br />        InitializeCriticalSection(&m_CritSect);<br />        EnterCriticalSection(&m_CritSect);<br /><br />    }<br /><br />    ~Critic

2010-08-17 16:16:00 355

原创 以前总结的关于MFC的一些知识

<br /><br />1.IP控件的使用<br />//将CString   型IP地址在IPAddressCtrl中显示   <br />  CString   strIP="192.168.0.10";   <br />  DWORD   dwIP;   <br />  dwIP   =   inet_addr(strIP);   <br />  unsigned   char   *pIP   =   (unsigned  char*)&dwIP;   <br />  m

2010-08-16 17:11:00 1349

原创 开始写博客

既然那么多前辈,高手写博客,那我就再庸俗,虚伪,跟风一次,写博客吧

2010-08-16 00:03:00 297

网络编程第6章源代码

留着备用 第6章源代码 希望有用 留着备用 第6章源代码 希望有用

2011-01-19

UNIX网络编程第5章源码

UNIX网络编程第5章源码,C语言 备用,调试过

2010-12-30

编译器 by C++

实现了分号结尾,和注释 eg. PROGRAM; VAR A,C; {HELLO WORLD} BEGIN A=C; END.

2010-12-23

tiny11 一个用C++写的pascal编译器

简单的编译器 实现了一些基本功能 可以解析 PROGRAM VAR A,C BEGIN A=C END.

2010-12-23

编译器 pascal写成 V11

和V10比较处理了,换行这样难以处理的情况,用next()来取代look的处理。 eg, PROGRAM VAR A,C,D BEGIN IF A>C D=1 ENDIF END. 输出是: code segment byte public code A dw 0 C dw 0 D dw 0 main: mov ax, A push ax mov ax, C pop bx cmp ax, bx pop bx cmp ax, bx xor ax, ax jle L0 mov ax, -1 L0: or ax, ax je L1 mov ax, 1 lea bx, D mov [bx], ax L1: code ends end main

2010-12-12

pascal 编译器 v11

相对于v10, 用方法next() 代替了 look 来驱动程序的运行,有效的出来了 换行,这样的不好处理的情况

2010-12-12

C++ 编译器v0.1

一个C++编译器,留着备用,实现了基本的功能的

2010-12-06

pascal 編譯器

一個簡單的編譯器 實現了如 pva,c,dbia>cd=1ee. p,v,b,i,e都是關鍵字代表program, var, begin ,if ,end 實現了算術,控制,邏輯運算

2010-11-28

C++ 編譯器V0.1

實現一個很簡單的編譯器。比如pva,c,dbia>cd=1ee. 其中p,v,b,e都代表關鍵字 programm var, begin end類pascal 實現了 算術 和 邏輯 以及簡單的 IF WHILE 控制語句

2010-11-28

C++ 前面6章 編譯器的源碼

實習了,布爾運算,算術運算 和 控制語句

2010-11-18

留作的源碼 一般的源碼

就GETNAME 這個函數作了改動,以後使用的時候注意 我自己用的,對你沒什麽用

2010-11-18

簡單的解析器 書的第四章

簡單的解析器 書的第四章

2010-11-11

03 一个简单的编译器 这只是前三章的源码 还有13章

实现了简单的 加减乘除, 括号,函数调用,多个字符的标识符,这是一本书对源码用pascal写成,我用C++ 改写。使用g++ gpc 编写

2010-11-09

《Effective C++》 & 《More Effective C++》

This book is a direct outgrowth of my experiences teaching C++ to professional programmers. I've found that most students, after a week of intensive instruction, feel comfortable with the basic constructs of the language, but they tend to be less sanguine about their ability to put the constructs together in an effective manner. Thus began my attempt to formulate short, specific, easy-to-remember guidelines for effective software development in C++: a summary of the things experienced C++ programmers almost always do or almost always avoid doing.

2010-10-18

C++ Network Programming

C++ Network Programming, Volume 1: Mastering Complexity with ACE and Patterns By Douglas C. Schmidt, Stephen D. Huston Publisher : Addison Wesley Pub Date : December 10, 2001 ISBN : 0-201-60464-7 Pages : 336

2010-10-18

超越 STL Boost的介绍

Boost的介绍 因为你正在读这本书,我希望你至少对Boost库有一点熟悉,或者你至少听说过Boost。 Boost里有很多库,只有很少一些是你不感兴趣的。

2010-10-18

unix 环境高级编程

unix 学习必看 对linux有一定认识后看到 多实践 好看看到

2010-10-17

计算机组成原理-白中英课后习题答案.rar

计算机组成原理-白中英课后习题答案.rar

2009-03-21

Apress.Foundations.of.Atlas.Rapid.Ajax.Development.with.ASP.NET.2.0.May.2006

Apress.Foundations.of.Atlas.Rapid.Ajax.Development.with.ASP.NET.2.0.May.2006 好好利用

2009-03-15

Professional.JavaScript.For.Web.Developers

Professional.JavaScript.For.Web.Developers 好好利用

2009-03-15

WroxProfessionalAjax

关于ajax,而且是用英文版的,好好利用的

2009-03-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除