一、封装weixin.class.php由于微信公众平台的通信使用的是特定格式的XML数据,每次接受和回复都要去做一大堆的数据处理。我们就考虑在这个基础上做一次封装,weixin.class.php,代码如下:token
= $token;$this->debug = $debug;} //...
分类:
微信 时间:
2014-05-08 09:43:33
阅读次数:
784
1 import java.util.Stack; 2 public class T005 { 3
public static void main(String[] args){ 4 Node n1 = new Node(1); 5 Node n2 =
ne...
分类:
编程语言 时间:
2014-05-08 05:19:42
阅读次数:
402
http://acm.hdu.edu.cn/showproblem.php?pid=3667最小费用最大流本题流量和费用不是线性关系,fee=a*flow*flow,所以常规套模板spfa无法得到最小费用观察到每条边流量上限只有5,则可以把一条流量为f的边拆成f条流量为1的边,每条边费用是a*(2*...
分类:
其他好文 时间:
2014-05-08 05:17:36
阅读次数:
329
题目链接:
http://acm.hdu.edu.cn/showproblem.php?pid=2841
Visible Trees
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1337 Accepted S...
分类:
其他好文 时间:
2014-05-08 04:45:47
阅读次数:
375
package org.mark.file;
import java.io.File;
/**
* File类的基本操作之读出全部文件夹路径
* 如果给定一个目录,要求将此目录中的全部文件都列出来
* 使用递归
*/
public class TestChare {
/**
* @param args
*/
public static void main(String[]...
分类:
其他好文 时间:
2014-05-08 03:53:29
阅读次数:
259
1、创建菜单//创建菜单
publicfunctioncreateMenu(){
$url="https://api.weixin.qq.com/cgi-bin/menu/create?access_token=";
$url.=$this->getacctoken();
//目前自定义菜单最多包括3个一级菜单,每个一级菜单最多包含5个二级菜单。一级菜单最多4个汉字,
//二级菜单最多7..
分类:
微信 时间:
2014-05-08 03:20:39
阅读次数:
550
题目:链接:http://acm.hdu.edu.cn/showproblem.php?pid=2176
题意:...
分类:
其他好文 时间:
2014-05-08 02:13:00
阅读次数:
285
题目:链接:http://acm.hdu.edu.cn/showproblem.php?pid=1907
题意:...
分类:
其他好文 时间:
2014-05-08 01:56:27
阅读次数:
231
转载请注明出处:http://acm.hdu.edu.cn/showproblem.php?pid=1217
Problem Description
Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one u...
分类:
其他好文 时间:
2014-05-08 01:48:12
阅读次数:
469
1.创建新的字符串 1 public class T004 { 2 public static
void main(String[] args){ 3 System.out.println(replaceBlank("we are happy")); 4
} 5 ...
分类:
编程语言 时间:
2014-05-08 01:08:18
阅读次数:
364