socket编程原理1、问题的引入1) 普通的I/O操作过程:UNIX系统的I/O命令集,是从Maltics和早期系统中的命令演变出来的,其模式为打开一读/写一关闭(open-write-read-close)。在一个用户进程进行I/O操作时,它首先调用“打开”获得对指定文件或设备的使用权,并返回称...
分类:
其他好文 时间:
2014-07-27 21:57:59
阅读次数:
302
move "c:\Documents and Settings\leon\Application Data\Mozilla\Firefox\Profiles\eyr6cp34.default\sessionstore.bak" "c:\Documents and Settings\leon\Application Data\Mozilla\Firefox\Profiles\eyr6cp34.def...
分类:
其他好文 时间:
2014-07-27 11:18:22
阅读次数:
174
there I write down the restaurant system.public class TimeSpan { Date date; String start; String end;}public class Table { int tableid; ...
分类:
其他好文 时间:
2014-07-27 11:02:02
阅读次数:
234
前言 笔者本打算撰写一篇讲解标准I/O(缓存I/O)的博文,但是发现已经有网友做过同样的工作,并且工作质量上乘,特转载于此。 原文地址http://lenky.info/archives/2012/08/1856 正文 利用系统调用函数read()/write()是我们平常用得最多的一...
分类:
其他好文 时间:
2014-07-27 10:58:32
阅读次数:
170
asp.net中打开新窗口的多种方法1.Response.Redirect("XXX.aspx",true)——直接转向新的页面,原窗口被代替;2. Response.Write("")——原窗口保留,另外新增一个新页面;3.Response.Write("")——打开新的页面,原窗口被代替;4.S...
分类:
Web程序 时间:
2014-07-27 10:43:22
阅读次数:
158
今天来说说 write barrier 。在 GC 的扫描过程中,由于分步执行,难免会出现少描了一半时,那些已经被置黑的对象又被修改,需要重新标记的情况。这就需要在改写对象时,建立 write barrier 。在扫描过程中触发 write barrier 的操作影响的对象被正确染色,或是把需要再染...
分类:
其他好文 时间:
2014-07-27 10:01:02
阅读次数:
309
继承类的范围,构造函数和拷贝控制
当用派生类执行函数的时候,首先会在当前的类里面找
如果找不到就一级一级地往上找。
Name Lookup Happens at Compile Time
class Quote
{
public:
Quote()=default;
Quote(const string &book, double sales_price)...
分类:
编程语言 时间:
2014-07-26 15:29:42
阅读次数:
542
A - 卡特兰数
Time Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
This is a small but ancient game. You are supposed to write down the num...
分类:
其他好文 时间:
2014-07-26 15:07:50
阅读次数:
216
控制台运行://显示defaults write com.apple.finder AppleShowAllFiles -bool true//隐藏defaults write com.apple.finder AppleShowAllFiles -bool false
分类:
其他好文 时间:
2014-07-26 13:42:34
阅读次数:
202
场景描述:系统启动之后,将分区挂载到/var目录下,保存日志文件到其他的硬盘分区之上。出现如下的问题:1重新挂载硬盘的分区到/var/log,接收系统的日志如果已经指向一个设备,重新挂载到一个设备,以前的将被覆盖2startingsystemlogger:cannotopenorcreate/var/run/syslogd.pi..
分类:
其他好文 时间:
2014-07-26 03:11:57
阅读次数:
599