有些函数并不是经常用,但有时它们的使用会提高效率这些函数并不加以注释,当想不起来时,再查,没事多看就不会忘记了。信息函数 get_defined_function(); get_defined_vars(); get_defined_constants(); get_include_path...
分类:
Web程序 时间:
2015-03-05 18:44:04
阅读次数:
137
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:
The left subtree of a node contains only nodes with keys less than the node's key.
The righ...
分类:
其他好文 时间:
2015-03-05 17:08:50
阅读次数:
178
编译程序时,只要遇到 #error 就会跳出一个编译错误,既然是编译错误,要它干嘛呢?其目的就是保证程序是按照你所设想的那样进行编译的。
下面举个例子:
程序中往往有很多的预处理指令
#ifdef XXX
...
#else
#endif
当程序比较大时,往往有些宏定义是在外部指定的(如makefile),或是在系统头文件中指定的,当你不太确定当前是否定义了 XXX 时,就可以改成如下这样进行编译:
#ifdef XXX
...
#error "XXX has been defined"
#els...
分类:
编程语言 时间:
2015-03-05 00:23:22
阅读次数:
221
Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1 using namespace std;int Ma...
分类:
其他好文 时间:
2015-03-05 00:10:17
阅读次数:
202
// Summary:
// Contains the values of status codes defined for HTTP.
public enum HttpStatusCode
{ // Summary: // Equivalent to HTTP status 100. System...
分类:
Web程序 时间:
2015-03-04 16:04:27
阅读次数:
169
http://acm.hdu.edu.cn/showproblem.php?pid=4587
Problem Description
Suppose that G is an undirected graph, and the value of stab is defined as follows:
Among the expression,G-i, -j is the ...
分类:
其他好文 时间:
2015-03-02 22:28:57
阅读次数:
241
Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Ncis the number of distinct common numbers shared by the two...
分类:
其他好文 时间:
2015-03-01 18:21:51
阅读次数:
181
#if !defined(_SORT_INCLUDED_H)
#define _SORT_INCLUDED_H
#include
/*
分别使用递归和循环来实现快速排序,虽然已经写了4年多代码了
但是发现一次性写的完整无误还真是...呵呵
author:davidsu33
datetime:2015-3-1
*/
/*
快速排序,使用递归
*/
template
void swap_val...
分类:
编程语言 时间:
2015-03-01 17:08:22
阅读次数:
153
Given an input string, reverse the string word by word. A word is defined as a sequence of non-space characters.The input string does not contain lead...
分类:
其他好文 时间:
2015-03-01 08:54:48
阅读次数:
160
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes w...
分类:
其他好文 时间:
2015-02-26 21:32:47
阅读次数:
191