- 博客(16)
- 资源 (2)
- 收藏
- 关注
转载 [转载]C++11中值得关注的几大变化
Lambda表达式Lambda表达式来源于函数式编程,说折了就是在使用的地方定义函数,有的语言叫“闭包”,如果Lambda函数没有传回值(例如void),其返回类型可被完全忽略。定义在与lambda函数相同作用域的变量参考也可以被使用。这种的变量一般被称作closure(闭包)。我在这里就不再讲这个事了。表达式的简单语法如下,[capture](parameters)->return_type {b
2015-05-22 14:59:50
307
转载 git rebase
假设你现在基于远程分支“origin”,创建一个叫"mywork"的分支。$ git checkout -b mywork origin现在我们在这个分支上做一些修改,然后生成两个提交(commit).$ vi file.txt$ git commit$ vi otherfile.txt$ git commit...但是与此同时,有些人也在"origin"分支上做了
2015-02-12 13:40:19
341
翻译 git mergetool
名字:运行merge-conflict resolution 工具去解决merge冲突语法:'git mergetool' [--tool=] [-y | --[no-]prompt] [...]描述:git mergetool 用来解决merge冲突。在这个过程中会调用merge 实体中的一个。通常这个命令用在 git merge之后。如果这个命令提供了一个或者多个文件参数,程序
2015-02-11 13:07:32
791
翻译 git merge-base
NAME: git-merge-base Find as good common ancestors as possible for a mergeSYNOPSIS:'git merge-base' [-a|--all] ...'git merge-base' [-a|--all] --octopus ...'git merge-base' --is-ancestor 'git
2015-02-10 18:07:29
763
原创 note for "strtok"
description sequence calls to this function split str into tokens tokens are sequences of contiguous characters separated by any of characters that are part of delimitershow to call first c
2015-01-27 16:40:18
270
原创 note for mgcinfocollector
getconf pstree pmap pgrep free slabinfo vmstat lsof
2015-01-05 15:40:12
304
原创 atomic
movx source, destinationsource 和 destination 的值可以是内存地址,存储在内存中的数据值,指令语句中定义的数据值,或者是寄存器。GNU汇编器为mov指令添加了一个维度,在其中必须声明要传送的数据元素的长度。通过把一个附加字符添加到mov助记符来声明这个长度。因此指令就变成了如下:movx其中 x 可以是下面的字符:l 用于32位的长字值,
2014-12-18 10:08:27
383
原创 cJSON
全局变量的说明之前再冠以static就构成了静态的全局变量。全局变量本身就是静态存储方式,静态全局变量当然也是静态存储方式。这两者在存储方式上并无不同。这丙者的区别虽在于非静态全局变量的作用域是整个源程序,当一个源程序由多个源文件组成时,非静态的全局变量在各个源泉文件中都是有效的。而静态全局变量则限制了其作用域,即只在定义该变量的源文件内有效,在同一源程序的其它源文件中不能使用它。由于静态全局变量
2014-12-08 10:35:38
297
原创 tiny httpd
feofint feof(FILE *stream)This function returns a non-zero value when End-of-File indicator associated with the stream is set, else zero is returned. S_IFMTthis is a bitmask used t
2014-11-25 13:49:12
327
原创 webbench
webbench 网站压力测试在一个网站上线之前,能承受多大访问量,在大访问量情况下性能怎么样。压力测试#include const char * strrchr ( const char * str, int character ); char * strrchr ( char * str, int character );return
2014-11-18 19:53:07
321
linux设备驱动程序
2012-03-05
linux设备驱动程序(第三版)
2012-03-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人