宏定义是C提供的三种预处理功能的其中一种,这三种预处理包括:宏定义、文件包含、条件编译。1.不带参数的宏定义:宏定义又称为宏代换、宏替换,简称“宏”。 格式: #define 标识符 字符串 其中的标识符就是所谓的符号常量,也称为“宏名”,字符串可以是常数、表达式、格式串等。 在编译预处...
分类:
其他好文 时间:
2015-01-23 13:03:13
阅读次数:
169
DescriptionThese days, I am thinking about a question, how can I get a problem as easy as A+B? It is fairly difficulty to do such a thing. Of course, ...
分类:
其他好文 时间:
2015-01-23 13:03:09
阅读次数:
128
很想有钱,但没涨薪怎么有钱;很想涨薪,没姿(neng)势(li)怎么高薪;很想涨姿(neng)势(li),没钱怎么涨姿(neng)势(li)。没钱怎么涨姿(neng)势(li)!没姿(neng)势(li)怎么高薪!没涨薪怎么有钱!没钱怎么任性!云通讯融资1500万美元,任性送豪礼,购物卡、极客学院会...
分类:
其他好文 时间:
2015-01-23 13:02:15
阅读次数:
184
书籍名称:HTML5-Animation-with-JavaScript书籍源码:https://github.com/lamberta/html5-animation1.正弦函数。x位置递增,y位置用sin生成。这段代码是不需要ball.js的。代码如下: Wave 2 ...
分类:
其他好文 时间:
2015-01-23 13:02:48
阅读次数:
177
What Is HiveHive is a data warehousing infrastructure based onHadoop. Hadoop provides massive scale out and fault tolerance capabilities for data stor...
分类:
其他好文 时间:
2015-01-23 13:00:15
阅读次数:
118
TCHAR buffer[MAX_PATH] = {0}; ::GetModuleFileName(NULL, buffer, MAX_PATH); CString strPath = buffer; int nIndex = strPath.ReverseFind(_T('\\')); strPa...
分类:
其他好文 时间:
2015-01-23 13:01:22
阅读次数:
142
这几天还是一直在搭建nginx,并且要在nginx的基础之上配置naxsi(WAF防火墙)并使它生效,但是随之而来的问题也会有很多,也许因为我是个新手,所以遇到的问题要多,不解的问题也要很多,不知道又没有一刻你为你在学习Linux的时候没有专心的研究过这些问题而感到有些遗憾。好了,下面我来说一下我....
分类:
其他好文 时间:
2015-01-23 12:59:58
阅读次数:
275
标题:Remove Nth Node From End of List通过率:28.5%难度:简答Given a linked list, remove thenthnode from the end of list and return its head.For example, Given .....
分类:
其他好文 时间:
2015-01-23 13:01:01
阅读次数:
177
在添加如下代码保证debug版本的arx文件也是使用MFC的release库// 'DEBUG workaround' below prevents the MFC or ATL #include-s// from pulling in "afx.h" that would force the de...
分类:
其他好文 时间:
2015-01-23 13:01:01
阅读次数:
166
梁慧星 关于我国民事法律制度的几个问题http://www.npc.gov.cn/npc/xinwen/1999-08/31/content_1459910.htm 王保树 中国的商事法律制度http://www.npc.gov.cn/npc/xinwen/1999-10/31/content_14...
分类:
其他好文 时间:
2015-01-23 12:59:01
阅读次数:
163
1.using指令。using + 命名空间名字,这样可以在程序中直接用命令空间中的类型,而不必指定类型的详细命名空间,类似于Java的import,这个功能也是最常用的,几乎每个cs的程序都会用到。例如:using System; 一般都会出现在*.cs中。2.using别名。using + 别名...
分类:
其他好文 时间:
2015-01-23 13:01:19
阅读次数:
138
有时候,为了方便用户使用我们编写的程序,需要在桌面,快速启动或程序组中创建程序的快捷方式。下面就介绍在VC下如何为程序创建快捷方式。一.得到桌面,快速启动或程序组的路径这里介绍二个win32 API函数来完成这个任务。第一个函数获得系统特殊路径HRESULTSHGetSpecialFolderLoc...
分类:
其他好文 时间:
2015-01-23 12:59:29
阅读次数:
259
终于抽出时间来写这个东西了,突然发现有些时候自己真的很不争气,做事情缺少更多更多的毅力。在隔了一周之后,这个应用不断的不断的在修改,甚至在中途写了一半,自己把前面写的东西全部删除了。自己总想抓到点什么,可是发现什么都没有抓到。值得庆幸的是,在这周一,自己完成了全部代码,经过几天测试,感觉还好。可,总...
分类:
其他好文 时间:
2015-01-23 12:58:08
阅读次数:
147
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:
其他好文 时间:
2015-01-23 13:00:37
阅读次数:
101
巨恶心的一个题::>___ 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 #...
分类:
其他好文 时间:
2015-01-23 12:56:15
阅读次数:
261
转自:http://www.cnblogs.com/soroman/archive/2008/03/21/1115571.html思考:矩阵及变换,以及矩阵在DirectX和OpenGL中的运用1。矩阵和线性变换:一一对应矩阵是用来表示线性变换的一种工具,它和线性变换之间是一一对应的。考虑线性变换:...
分类:
其他好文 时间:
2015-01-23 12:56:29
阅读次数:
180