1.first of all,take a lookup on the left side
of keyword const.If there is something(type or pointer),then apply const
featureto it.2.nothing found on...
分类:
编程语言 时间:
2014-05-06 00:38:25
阅读次数:
361
预计在2014年底,ECMAScript
6将会正式发布,他的草案在13年3月份被冻结,后续提出新特性将会移至ECMASript
7中。目前还没有哪款浏览器实现了ES6的全部内容,兼容性最强的一款要数FireFox了。具体情况可以在这里查看。关于 ECMAScript 6
草案,我在博客里头复制了一...
分类:
其他好文 时间:
2014-05-06 00:09:34
阅读次数:
546
1.const修饰普通变量和指针const修饰变量,一般有两种写法:constTYPEvalue;TYPEconstvalue;这两种写法在本质上是一样的。它的含义是:const修饰的类型为TYPE的变量value是不可变的。对于一个非指针的类型TYPE,无论怎么写,都是一个含义,即value只不可...
分类:
编程语言 时间:
2014-05-05 23:46:44
阅读次数:
351
输入子系统在内核中的位置:/driver/input
drivers/input/input.c: input_init ---> err = register_chrdev(INPUT_MAJOR,
"input", &input_fops); static const struct file_o...
分类:
其他好文 时间:
2014-05-05 23:34:42
阅读次数:
516
The general mechanism for executing tasks is
the executor service. If you think in terms of tasks and let an executor service
execute them for you, yo...
分类:
编程语言 时间:
2014-05-05 23:32:44
阅读次数:
389
1、内连接与外连接的最大区别是其查找某个定义时,所采用的策略。 内连接:
对这个定义的访问被局限在当前编译单元,其他编译单元无法访问,所以在连接时,它不会和其它的编译对象(.o/.obj)对象作比较,所以这些对象,也不能通过extern来访问。(static、const、类的成员/函数)
...
分类:
编程语言 时间:
2014-05-05 21:57:40
阅读次数:
355
代码:
#include
#include
#include
#include
using namespace std;
const int maxn=10003;
const int inf=0x7fffffff;
int num[maxn];
int n;
int main()
{
while(scanf("%d",&n)!=EOF&&n)...
分类:
其他好文 时间:
2014-05-04 12:39:16
阅读次数:
331
题目详情我们要给每个字母配一个1-26之间的整数,具体怎么分配由你决定,但不同字母的完美度不同,而一个字符串的完美度等于它里面所有字母的完美度之和,且不在乎字母大小写,也就是说字母F和f的完美度是一样的。现在给定一个字符串,输出它的最大可能的完美度。例如:dad,你可以将26分配给d,25分配给a,这样整个字符串最大可能的完美度为77。函数头部Cint perfect(const char *s)...
分类:
其他好文 时间:
2014-05-03 16:57:02
阅读次数:
300
与C中的main函数一样,MEX程序中的开始函数为mexFunction.默认变量参数是:void mexFunction(int nlhs, mxArray
*plhs[], int nrhs, const mxArray *prhs[])其中nlhs输出参数数目plhs[]指向输出参数的指针nr...
分类:
其他好文 时间:
2014-05-02 18:01:35
阅读次数:
386
相关函数fork, execle, execlp, execv, execve,
execvpWindows下头文件#include Linux下头文件#include 函数定义int execl(const char *path,
const char *arg, ...);函数说明execl()...
分类:
其他好文 时间:
2014-05-02 17:52:52
阅读次数:
674