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
After following many outdated and incomplete instructions for setting up a web development environment on a Mac (back in March 2012), and spending a l...
分类:
其他好文 时间:
2014-07-19 15:00:41
阅读次数:
730
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
KM 构图求最小权值匹配保证最小的权值,所连的边一定是能够不相交的.AntsTime Limit:3000MSMemory Limit:Unknown64bit IO Format:%lld & %llu[Submit] [Go Back] [Status]DescriptionYoung nat....
分类:
其他好文 时间:
2014-07-19 00:24:57
阅读次数:
297
ioctl 是用来设置硬件控制寄存器,或者读取硬件状态寄存器的数值之类的。而read,write 是把数据丢入缓冲区,硬件的驱动从缓冲区读取数据一个个发送或者把接收的数据送入缓冲区。ioctl(keyFd, FIONREAD, &b)得到缓冲区里有多少字节要被读取,然后将字节数放入b里面。接下来就能...
分类:
其他好文 时间:
2014-07-18 18:21:55
阅读次数:
245
基于TCP-服务器1、创建一个socket,2、绑定IP地址、端口等信息到socket上,用函数bind()3、设置允许的最大连接数,用函数listen()。4、等待来自客户端的连接请求,用accept()5、收发数据,用函数send()和recv(),或者read()和write()6、关闭网络连...
分类:
系统相关 时间:
2014-07-18 16:11:39
阅读次数:
274
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
Faced with the upcoming exam, Some useful methods referred to file operation drew tremenous attention. Now I make a summary to reading file.
import java.io.BufferedReader;
import java.io.BufferedWri...
分类:
其他好文 时间:
2014-07-18 12:26:25
阅读次数:
274