① 分组模块分组(消息)是模拟器的基本对象。Ns-3中每个分组都包含一个字节缓冲区和一个Tag列表,通过Header类和Trailer类对缓冲区数据进行添加和删除。分组对象的接口提供一些私有数据的访问,Tags通过一个指针来实现,该指针指向TagData数据结构链表的开始,字节缓冲区和Tag链表的当...
分类:
其他好文 时间:
2014-06-28 11:50:14
阅读次数:
241
新建一个tags.pyfrom django import templateregister = template.Library()def short_msg(value): if len(value) > 50: return value[:50]+" ......" ...
分类:
其他好文 时间:
2014-06-25 20:56:43
阅读次数:
203
Configure Oracle environment It is recommended that user sets the specific environment for Oracle installation in ~/.bash_profile file prior to instan...
分类:
数据库 时间:
2014-06-24 15:26:00
阅读次数:
611
phpcms 每个pc标签对应modules控制器下一个 tag.class类比如{pc:content action="position" posid="2" order="listorder DESC" num="4"} {loop $data $key $val} {$val['titl...
分类:
Web程序 时间:
2014-06-24 12:28:21
阅读次数:
344
利用R自带数据集通过data()函数可以查看R自带数据集。> data()返回以下结果,每一条记录都是一个数据,键入相应的数据名称可以查看具体信息。Data sets in package ¡®datasets¡¯:AirPassengers Monthly Airline ...
分类:
其他好文 时间:
2014-06-24 12:27:01
阅读次数:
193
HDU 11488 Hyper Prefix Sets (字符串-Trie树)
题目大意:
假设a表示公共前缀的长度,b表示含有这个前缀的字符串个数,问你a*b的最大值。
解题思路:
建立一棵Trie树,边建边查,直接更新 长度乘以个数的最大值...
分类:
其他好文 时间:
2014-06-22 21:12:34
阅读次数:
307
一、JSP就是一个在服务器端的设计面板
百科说:它是在传统的网页HTML(标准通用标记语言的子集)文件(*.htm,*.html)中插入Java程序段(Scriptlet)和JSP标记(tag),从而形成JSP文件,后缀名为(*.jsp)。他实现了Html语法中的java扩张(以 形式)。JSP与Servlet一样,是在服务器端执行的
我说:jsp不是编程语言。JSP的三个英文是java...
分类:
Web程序 时间:
2014-06-22 20:11:27
阅读次数:
205
在4.0.4 r1.2中查看android.widget.ImageView源代码可以发现,setImageBitmap()方法其实是调用了setImageDrawable()方法进行重绘。
Sets a Bitmap as the content of this ImageView.
Parameters:
bm The bitmap to set
@android...
分类:
其他好文 时间:
2014-06-22 19:31:16
阅读次数:
251
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