1. SAE 数据库的连接。需要主机名和端口,以后的使用是一样的。
@ $db = new mysqli(SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS,'你的应用名');
2.XML 的处理。微信发送的消息格式都是 XML 格式,你返回的消息也必须是 XML 格式。从 XML 里提取数据,用 SimpleX...
分类:
微信 时间:
2014-06-05 03:34:13
阅读次数:
480
Reverse a linked list from positionmton. Do it
in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m=
2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2014-06-04 18:55:07
阅读次数:
343
【题目】
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 1->4->3->2->5->NULL.
Note:
Given m, n satisfy the following condition:
1 ≤ m ≤ n ≤ length of list.
【题意】
...
分类:
其他好文 时间:
2014-06-01 15:08:34
阅读次数:
237
条款20:宁以pass-by-reference-to-const替换pass-by-value...
分类:
其他好文 时间:
2014-05-31 21:55:34
阅读次数:
223
Binutils-2.24 - Pass 1 解压缩 tar –jxvf
binutils-2.24.tar.bz2 进入代码目录 cd tinutils-2.24 建立编译目录 mkdir –v ../binutils-build
切换到编译目录 cd ../binutils-build 授予co...
分类:
系统相关 时间:
2014-05-31 02:49:54
阅读次数:
409
Speaking Tips from Popular TED Talks1. best
practices in presenting THE2. Knowledge is power. Pass it on. Click this button
to share information on ea...
分类:
其他好文 时间:
2014-05-30 19:39:38
阅读次数:
417
1. 最基本的读文件方法:# File: readline-example-1.pyfile =
open("sample.txt")while 1: line = file.readline() if not line: break pass # do
something 一行一行得从文件读数据....
分类:
编程语言 时间:
2014-05-29 01:34:30
阅读次数:
402
修改php.ini就可以了。1. 在PHP.ini中搜索关键字 :
allow_call_time_pass_reference 没有的自行建立。2. 将 Off 改成 On ,Web
Server重起就OK了~allow_call_time_pass_reference = Off 变成 allo...
分类:
Web程序 时间:
2014-05-25 19:40:31
阅读次数:
265
题目说:Try to do this in one pass
只用一遍遍历的话,p1先走n节点,p2再走,等到p1到达链表尾的时候p2正好在倒数第n+1个上面鸟
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode...
分类:
其他好文 时间:
2014-05-23 01:52:29
阅读次数:
331