error C4430: missing type specifier - int assumed. Note: C++ does not support default-int错误类型: 缺失类型表述错误原因: 函数前未写函数的返回类型,由此导致了这个错误解决方法: 以后写函数,不管是声明还是定义...
分类:
编程语言 时间:
2014-08-13 22:04:07
阅读次数:
211
CCIE学习笔记之端到端QOSClass-map默认行为match-allMatchprotocolhttpmime“*/audio/*”Matchprotocolhttpmime“*/video/*”//分类器寻找特殊类型的音频和视频mime流量Matchprotocolhttp“*.jpg|*.jpeg”//匹配图片流量注:MIME类型就是设定某种扩展名的文件用一种应用程序来..
分类:
其他好文 时间:
2014-08-13 15:07:27
阅读次数:
1818
SSH, SecureSHell, was designed and created to provide the best security when accessing another computer remotely.Not only does it encrypt the remote s...
分类:
其他好文 时间:
2014-08-12 18:39:54
阅读次数:
231
克隆kvm的centos的镜像之后,启动克隆后的虚拟机报错,出现deviceeth0doesnotseemtobepresent,delayinginitialization这个错误解决办法是先打开/etc/udev/rules.d/70-persistent-net.rules#cat/etc/udev/rules.d/70-persistent-net.rules#Thisfilewasautomaticallygeneratedbyt..
分类:
其他好文 时间:
2014-08-12 17:33:25
阅读次数:
183
match()函数是在string的开始位置匹配,如果不匹配,则返回Nonesearch()会扫描整个string查找匹配;也就是说match()只有在0位置匹配成功的话才有返回,例如:print(re.match(‘super’, ‘superstition’).span()) 会返回(0, 5....
分类:
编程语言 时间:
2014-08-12 16:25:34
阅读次数:
210
layout_width and layout_heigth 本框与外框之间的关系;属性有fill_parent,wrap_content,match_parent三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent设置一...
分类:
其他好文 时间:
2014-08-11 20:27:22
阅读次数:
209
1\string are immutable, which means you can't change an existing string.>>>greeting = 'Hello world!'>>>greeting[0] = 'J'TypeError: object does not sup...
分类:
编程语言 时间:
2014-08-11 17:06:42
阅读次数:
256
作者: 铁锚日期: 2014年8月10日Redis对于Linux是官方支持的,安装和使用没有什么好说的,普通使用按照官方指导,5分钟以内就能搞定。详情请参考:http://redis.io/download 但有时候又想在windows下折腾下Redis,可以从redis下载页面看到如下提示:Win64 Unofficial The Redis project does not directly...
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或...
分类:
移动开发 时间:
2014-08-09 11:25:07
阅读次数:
215
http://acm.hdu.edu.cn/showproblem.php?pid=3416题意:某狼要到别的城市去面基,但是去每个城市都要走最短路,每条路只能走一次。求最多的路径条数。题解:先跑最短路把最短路处理出来。然后建网络流的边。 建边:把能到达源点的边加入进去,容量为1。也可以求两遍最.....
分类:
其他好文 时间:
2014-08-08 17:59:06
阅读次数:
219