所有问题,都是自己遇到过的。 但内容,有一半是自己写的,也有一半是复制过来。 所以,写成原创还请原谅1. ListView添加标题后(addHeader())后,使用listView.getAdapter获取的对像是被Header封装后的HeaderViewListAdapter对像.所以,为了获取...
分类:
移动开发 时间:
2014-06-28 12:14:44
阅读次数:
285
① 分组模块分组(消息)是模拟器的基本对象。Ns-3中每个分组都包含一个字节缓冲区和一个Tag列表,通过Header类和Trailer类对缓冲区数据进行添加和删除。分组对象的接口提供一些私有数据的访问,Tags通过一个指针来实现,该指针指向TagData数据结构链表的开始,字节缓冲区和Tag链表的当...
分类:
其他好文 时间:
2014-06-28 11:50:14
阅读次数:
241
1、下载php源码包http://www.php.net/downloads.php2 、安装phptar -xvf php-5.5.13.tar.bz2cd php-5.5.13./configure --prefix=/usr/local/php --with-config-file-path=...
分类:
Web程序 时间:
2014-06-28 11:46:15
阅读次数:
259
PHP提交表单失败后如何保留已经填写的信息。PHP提交表单失败后如何保留填写的信息一些方法总结,其中最常用的就是使用缓存方式了,这种方法如果网速慢是可能出问题的,最好的办法就是使用ajax了。1.使用header头设置缓存控制头Cache-control。PHP代码:header('Cache-co...
分类:
Web程序 时间:
2014-06-28 11:05:59
阅读次数:
251
HDU 11488 Hyper Prefix Sets (字符串-Trie树)
题目大意:
假设a表示公共前缀的长度,b表示含有这个前缀的字符串个数,问你a*b的最大值。
解题思路:
建立一棵Trie树,边建边查,直接更新 长度乘以个数的最大值...
分类:
其他好文 时间:
2014-06-22 21:12:34
阅读次数:
307
11488 - Hyper Prefix Sets
Time limit: 2.000 seconds
#include
#include
#include
#include
#include
#include
#include
using namespace std;
const int maxn = 5000000;
vector vs;
int cnt,ans...
分类:
其他好文 时间:
2014-06-22 16:38:22
阅读次数:
199
insert into prefix_${table_name} (a, b, c) values (#{a}, #{b}, #{c})
${} 表示直接使用字面量(literal value)
#{} 表示这个是个参数
如果 table_name 是 “ABC”
则 ${table_name} 是 ABC
#{table_name} 是 “ABC"...
分类:
数据库 时间:
2014-06-22 00:58:21
阅读次数:
240
header("Content-type: image/png");
$im = @imagecreatetruecolor(282, 282) or die("Cannot Initialize new GD image stream");
imagecopy($im, imagecreatefrompng('C02D9CE4B4B6E3F6DF8D9DB734.png'), 1,1,0,0,2...
分类:
Web程序 时间:
2014-06-21 20:01:39
阅读次数:
854
/** * $str 原始字符串 * $encoding 原始字符串的编码,默认GBK * $prefix 编码后的前缀,默认"&#" * $postfix 编码后的后缀,默认";" */function unicode_encode($str, $encoding = 'GBK', $prefix...
分类:
Web程序 时间:
2014-06-20 22:26:42
阅读次数:
286