1. 网络数据传输时需要考虑字节序问题,即大端小端问题:
x86系列CPU都是little-endian的字节序.
网络字节顺序是TCP/IP中规定好的一种数据表示格式,它与具体的CPU类型、操作系统等无关,从而可以保证数据在不同主机之间传输时能够被正确解释。网络字节顺序采用big endian排序方式。
为了进行转换 bsd socket提供了转换的函数 有下面四个
h...
分类:
其他好文 时间:
2014-09-19 12:08:35
阅读次数:
213
Ctrl + a - Jump to the start of the lineCtrl + b - Move back a charCtrl + c - Terminate the command Ctrl + d - Delete from under the cursorCtrl + e - ...
分类:
其他好文 时间:
2014-09-19 11:32:05
阅读次数:
159
move原型:
std::move
template
OutputIterator move (InputIterator first, InputIterator last, OutputIterator result);
该函数是将指定范围内的元素移动到从result开始的位置。
move之后,[first,last)范围内的元素去留的具体实现由编译器决定。
...
分类:
其他好文 时间:
2014-09-19 10:09:05
阅读次数:
150
http://stephband.info/jquery.event.move/Move eventsmovestartFired following touchmove or mousemove, when the touch (or mouse) crosses a threshold dist...
分类:
Web程序 时间:
2014-09-19 08:46:05
阅读次数:
262
Big Event in HDUTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24002Accepted Submission(s): 8458...
分类:
其他好文 时间:
2014-09-19 00:59:04
阅读次数:
274
Babelfish
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 32988
Accepted: 14189
Description
You have just moved from Waterloo to a big city. The people here ...
分类:
其他好文 时间:
2014-09-18 20:47:04
阅读次数:
232
test新浪博客 http://upload.move.blog.sina.com.cn/blog_rebuild/blog/xmlrpc.php网易博客 http://os.blog.163.com/api/xmlrpc/metaweblog/自建Wordpress站点 http://您的博客地址...
新浪博客 http://upload.move.blog.sina.com.cn/blog_rebuild/blog/xmlrpc.php网易博客 http://os.blog.163.com/api/xmlrpc/metaweblog/自建Wordpress站点 http://您的博客地址/xml...
【题目】
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[...
分类:
其他好文 时间:
2014-09-18 11:29:23
阅读次数:
201
Over time, Alexey's mail box got littered with too many letters. Some of them are read, while others are unread.
Alexey's mail program can either show a list of all letters or show the content of a s...
分类:
其他好文 时间:
2014-09-17 15:16:42
阅读次数:
248