
General
文章平均质量分 62
sulliy
这个作者很懒,什么都没留下…
展开
-
解析Extern
<br />1、 声明外部变量<br />现代编译器一般采用按文件编译的方式,因此在编译时,各个文件中定义的全局变量是互相透明的,也就是说,在编译时,全局变量的可见域限制在文件内部。下面举一个简单的例子。创建一个工程,里面含有A.cpp和B.cpp两个简单的C++源文件:<br />//A.cpp<br />int i;<br />void main()<br />{<br /> //<br />}<br />//B.cpp<br />int i;<br /> 这两个文件极为简单,在A.cpp中我们定转载 2010-07-12 00:33:00 · 606 阅读 · 0 评论 -
与矩阵相关的C++,Java库
A generic, reusable, and extendable matrix class : http://www.codeproject.com/KB/architecture/ymatrix.aspx提供了一个可扩展的框架,比较适合学习,C++ 模板 JAMA, Java Matrix Package, http://math.nist.gov/javanumeric原创 2011-10-27 14:26:09 · 2293 阅读 · 0 评论 -
REST架构
REST 定义了一组体系架构原则,您可以根据这些原则设计以系统资源为中心的 Web 服务,包括使用不同语言编写的客户端如何通过 HTTP 处理和传输资源状态。 如果考虑使用它的 Web 服务的数量,REST 近年来已经成为最主要的 Web 服务设计模型。 REST是一种轻量级的W原创 2011-10-16 00:08:51 · 2882 阅读 · 0 评论 -
乔布斯在斯坦福大学的演讲
Stanford Report, June 14, 2005‘You’ve got to find what you love,’ Jobs saysThis is the text of the Commencement address by Steve Jobs, C转载 2011-09-27 20:50:32 · 2243 阅读 · 0 评论 -
AutoIt 常用功能
1. 消除文件后缀StringTrimRight(@ScriptName, 4)StringRight(@ScriptName, StringLen(@ScriptName) - 4)2. 获取数组的行列Dim $Rows = UBound($Operation)Dim $Cols = UBound($Operation, 2)3. 判断IP地址Func __IsIPv4($IPStr)Return StringRegExp($IPStr, '^([1-9]|[1-9]原创 2011-04-21 11:46:00 · 5279 阅读 · 1 评论 -
10句编程谚语
所谓谚语,就是用言简意赅、通俗易懂的方式传达人生箴言和普遍真理的话,它们能很好地帮助你处理生活和工作上的事情。也正因如此,我才整理了10句编程谚语,每位开发人员都应该铭记他们,武装自己。1. 无风不起浪别紧张,这也许只是一场消防演习代码设计是否糟糕,从某些地方就可以看出来。比如:•a. 超大类或超大函数•b. 大片被注释的代码•c. 逻辑重复•d. If/else嵌套过深程序员们通常称它们作代码异味(Code Smell),但是就我个人认为“代码警报”这个名字更为合适一些,因为它有更高的紧迫感的含义。根本问转载 2011-03-23 09:42:00 · 1122 阅读 · 0 评论 -
Programming Quotes
1. Walking on water and developing software from a specification are easy if both are frozen. – Edward V Berard2. “Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debugging Monday’s code.” – Christopher Thompson 3. “Mo原创 2011-02-16 14:07:00 · 959 阅读 · 0 评论 -
快速排序的递归和非递归解法
快速排序非递归的实现方法借用堆栈实现,栈和队列是消除递归的常用方法。using System;using System.Collections.Generic;using System.Text;namespace QuickSort{ class Program { public static void Main(string[] args) { int[] arr = { 4, 3原创 2011-02-15 10:36:00 · 1486 阅读 · 0 评论 -
Types of programmers
<br />In my code journeys and programming adventures I’ve encountered many strange foes, and even stranger allies. I’ve identified at least six different kinds of code warriors, some make for wonderful comrades in arms, while others seem to foil my every p转载 2011-02-12 10:36:00 · 724 阅读 · 0 评论 -
Programming is not not Programming
I used to call myself a "Software Craftsman" for nostalgic reasons, it made me feel good and connected to history - like to Conan's dad in the start of the movie, forging a sword - "We who found it are just men. Not gods. Not giants. Just men. The secret o转载 2011-01-21 09:52:00 · 903 阅读 · 0 评论 -
拨云见日 关注七项 Linux 内核发展方向
拨云见日 关注七项 Linux 内核发展方向<br />对于一个 Linux 的企业用户来说,它的内核开发可能显得过于复杂了,有许多人在维护不同的代码,而且有更多志愿者在提交代码,这种乱花渐欲迷人眼式的“热闹”景象却让我们很难看清未来将有什么样的新功能。<br /> 就其本身而言,Linux 的发展没有路线图。为了对 Linux 发展方向有一个简单的认识,作者根据与开发者和内核维护者的交流,以及从 www.kernelnewbies.org 网站上了解的知识,提出了值得关注的七个开发领域。当然,这七个方面转载 2010-11-19 13:53:00 · 599 阅读 · 0 评论 -
字节对齐
<br />一.什么是字节对齐,为什么要对齐?<br /><br />现代计算机中内存空间都是按照byte划分的,从理论上讲似乎对任何类型的变量的访问可以从任何地址开始,但实际情况是在访问特定类型变量的时候经常在特 定的内存地址访问,这就需要各种类型数据按照一定的规则在空间上排列,而不是顺序的一个接一个的排放,这就是对齐。<br /><br />对齐的作用和原因:各个硬件平台对存储空间的处理上有很大的不同。一些平台对某些特定类型的数据只能从某些特定地址开始存取。比如有些架构的CPU在访问 一个没有进行对齐的转载 2010-08-25 13:05:00 · 612 阅读 · 0 评论 -
AutoIt写的DLL复制到Windows目录的小程序
最近学习AutoIT,被拿来做一些自动化测试。写个Helloworld小程序,算个开始吧。 #include Opt("MustDeclareVars", 1)main()Func main() Dim $m = GUICreate("resister", 270, 120) Dim $input = GUICtrlCreateInput("directory", 10, 35, 250, 20) Dim $btnFile = GUICtrlCreateButto原创 2010-08-02 15:53:00 · 2694 阅读 · 2 评论 -
如何使用robots.txt控制网络蜘蛛访问
How to Set Up a robots.txt to Control Search Engine Spidershttp://www.thesitewizard.com/archive/robotstxt.shtmlby Christopher Heng, thesitewizard.com When I first started writing my first we转载 2010-05-20 18:54:00 · 2387 阅读 · 0 评论 -
Notepad++添加新语言支持
Notepad plus与语言相关的配置文件主要有:langs.xml - all the keywords of supported languages to be highlighted are in this file.langs.model.xml - A backup file?userDefineLang.xml - this file contains all the d原创 2011-12-06 16:16:02 · 12964 阅读 · 1 评论