protected void btnSend_Click(object sender, EventArgs e) { if (this.ddlSendName.SelectedValue == "-1") { Response.Write(""); return; } } protected vo....
分类:
其他好文 时间:
2014-07-19 17:35:22
阅读次数:
164
什么是mmap mmap对于c程序员很熟悉,对于java程序员有点陌生。简而言之,将文件直接映射到用户态的内存地址,这样对文件的操作不再是write/read,而是直接对内存地址的操作。 在c中提供了三个函数来实现 [list]mmap 进行映射munmap 取消映射msync 进程在映射空间的对共...
分类:
编程语言 时间:
2014-07-19 16:37:03
阅读次数:
407
例子说明get和post的方法使用:
一、示例用的GET方法:
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, world")
application...
分类:
其他好文 时间:
2014-07-19 12:02:22
阅读次数:
205
Your little brother has just learnt to write one, two and three, in English. He has written a lot of those words in a paper, your task is to recognize...
分类:
其他好文 时间:
2014-07-19 11:30:29
阅读次数:
225
Your little brother has just learnt to write one, two and three, in English. He has written a lot of those words in a paper, your task is to recognize...
分类:
其他好文 时间:
2014-07-19 09:31:41
阅读次数:
238
UVA 1156 - Pixel Shuffle
题目链接
题意:根据题目中的变换方式,给定一串变换方式,问需要执行几次才能回复原图像
思路:这题恶心的一比,先模拟求出一次变换后的对应的矩阵,然后对该矩阵求出所有循环长度,所有循环长度的公倍数就是答案
代码:
#include
#include
const int N = 1100;
int t, n, g[N]...
分类:
其他好文 时间:
2014-07-19 08:15:10
阅读次数:
307
题目如下:
Graph Coloring
You are to write a program that tries to find an optimal coloring for agiven graph. Colors are applied to the nodes of the graph and the only availablec...
分类:
其他好文 时间:
2014-07-19 02:35:06
阅读次数:
210
ioctl 是用来设置硬件控制寄存器,或者读取硬件状态寄存器的数值之类的。而read,write 是把数据丢入缓冲区,硬件的驱动从缓冲区读取数据一个个发送或者把接收的数据送入缓冲区。ioctl(keyFd, FIONREAD, &b)得到缓冲区里有多少字节要被读取,然后将字节数放入b里面。接下来就能...
分类:
其他好文 时间:
2014-07-18 18:21:55
阅读次数:
245
asp从第几条开始读取数据asp跳过前几条读取数据
<%
setrs=server.CreateObject("adodb.recordset")
sql="selecttop15*fromjsyllh_xxnewswhereSMT_key=1andSMT_newssort=41orderbySMT_iddesc"
rs.opensql,conn,1,1
ifrs.eofthen
response.write"本类暂无新闻"
else
i=0
dowh..
分类:
Web程序 时间:
2014-07-18 13:14:31
阅读次数:
223
注意:第一步要先添加权限:<uses-permissionandroid:name="android.permission.READ_EXTERNAL_STORAGE"/><uses-permissionandroid:name="android.permission.WRITE_EXTERNAL_STORAGE"/>步骤:文件流1、写:a)创建文件输出流(PATH)b)将内容写入文件输出流(str...
分类:
其他好文 时间:
2014-07-18 13:14:00
阅读次数:
228