??
安装Apach
配置ApacheRuntime
下面的过程中一直点击next
配置CGI,放开配置:AddHandler
cgi-script .cgi
2.添加Option,截图
3.编写CGI代码如下:
#define
_CRT_SECURE_NO_WARNINGS
//取消安全检查
#...
分类:
编程语言 时间:
2014-07-31 03:02:15
阅读次数:
430
解题报告
思路:
字典树应用,dfs回溯遍历字典树
#include
#include
#include
using namespace std;
struct node {
int v;
node *next[26];
};
int l,m,cnt;
char str[100],ch[100],dic[5500][100];
node *newnode()
{
...
分类:
其他好文 时间:
2014-07-31 00:05:35
阅读次数:
283
terator是一个集合的迭代器,通过Iterator访问接口就就不用关心集合的实现.Iterator接口中定义了三个方法:1.hasNext()是否还有下一个元素.2.next()返回下一个元素.3.remove()删除当前元素.只定义了简单的三个方法,这里要注意几点:1)Iterator和Enu...
分类:
其他好文 时间:
2014-07-30 23:50:35
阅读次数:
248
Hadoop MapReduce Next Generation - Setting up a Single Node Cluster.PurposeThis document describes how to set up and configure a single-node Hadoop in...
分类:
其他好文 时间:
2014-07-30 23:41:45
阅读次数:
284
//code:#include#includeusing namespace std;typedef int status;typedef int elemType;typedef struct lNode{elemType num;struct lNode *next;}lNode,*linkNo...
分类:
其他好文 时间:
2014-07-30 23:13:45
阅读次数:
189
//代码为自己编写,可能有问题,欢迎大家留言指正!
#include
#include
using namespace std;
typedef struct dnode
{
int val;
dnode *prior;
dnode *next;
}dnode;
dnode * create();
void traverse(dnode *pHead);
bool insert(dn...
分类:
其他好文 时间:
2014-07-30 20:56:44
阅读次数:
210
1 package leetcode; 2 3 public class ReOrderList { 4 public void reorderList(ListNode head) { 5 if(head==null||head.next==null||head.ne...
分类:
其他好文 时间:
2014-07-30 20:05:54
阅读次数:
243
#include
#include
using namespace std;
typedef struct node
{
int val;
node *next;
}node;
node * create_list();
void traverse_list(node *pHead);
int get_len_list(node *pHead);
bool delete_list(no...
分类:
其他好文 时间:
2014-07-30 17:43:54
阅读次数:
237
枚举所有相邻城市,作为起点,多次spfa,然后每次在想去的城市中找出spfa后的距离起点最短的花费时间
#include
#include
#include
using namespace std;
#define MAX 1005
#define INF 1<<30
int T,S,D;
struct Edge{
int to,time,next;
}edge[MAX*2...
分类:
其他好文 时间:
2014-07-30 12:19:03
阅读次数:
215
归并排序的链表法#includeusing namespace std;struct ListNode{ int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {}};class Solution{public:...
分类:
其他好文 时间:
2014-07-30 07:40:23
阅读次数:
174