1、注释 以#开头2、字符串 数据类型为str类型; 用双引号“”或单引号‘’括起,若字符串中包含字符,则采用'this is a "string" '格式3、number 只有int型和float型两种。 flaoat型的精度大概为小树点后15位。4、运算符 5个基本运算符:+、-、*...
分类:
编程语言 时间:
2014-10-14 00:15:17
阅读次数:
297
最大子序列积问题??
leetcode
Find the contiguous subarray within an array (containing at least one number)
线性时间算法...
分类:
其他好文 时间:
2014-10-13 23:44:27
阅读次数:
254
在全局作用域中定义非const变量时,它在整个应用程序中都可以访问,如果是const变量那么它只是在当前文件中的局部变量。我们知道如果要一个变量在其他文件中也可使用的话我们可以用extern标识变量即可,默认非const型的变量为extern1.cppextern int number;//声明了一...
分类:
其他好文 时间:
2014-10-13 23:30:17
阅读次数:
150
WINDOWS INSTALLER无法启动解决方法2011-04-13 10:18:32标签:操作系统windows休闲职场第一步:使用记事本编写installer.reg文件,内容如下:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\...
关于[cpp] view plaincopyprint?GLenumerr=glewInit();if(GLEW_OK!=err)fprintf(stderr,"errorinitializaingGLew%s\n",glewGetErrorString(err));返回: GLEW_ERROR_....
分类:
其他好文 时间:
2014-10-13 22:44:47
阅读次数:
341
javascript类型检测这节主要讲了typeof和instanceof操作符。一、typeof操作符:1、typeof在检测基本数据类型时十分方便,针对4种基本数据类型string、number、boolean、undefined将返回它们各自对应的类型字符串:typeof "time"; //...
分类:
编程语言 时间:
2014-10-13 20:31:17
阅读次数:
202
os7苹果公司加入了摄像头隐私设置选项:
在app中监测手机摄像头是否授权给APP:
#define PHOTOGRAPH_ACCREDIT if(VALID_VERSION(7.0)){ if(!([AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo] == AVAuthorizationStatusAuthorized)){ UIAlertView * alt...
分类:
其他好文 时间:
2014-10-13 20:14:47
阅读次数:
177
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)
You have the following 3 operations permitted on a word:...
分类:
其他好文 时间:
2014-10-13 20:08:07
阅读次数:
188
本人在安装PGI时出现ERROR: unknown glibc version (2.4)的错误,经过网友的指教,终于成功完成安装。看着PGI能顺利工作,心里确实很爽,在这里也把自己的一点所获与大家分享。以本人所用的PGI-7.1.4为例,第一次安装后出现上述错误,但是发现此时PGI文件已经被成功写...
分类:
其他好文 时间:
2014-10-13 18:30:11
阅读次数:
239
Ext.form.field.Number针对数字约束的配置项 1 2 3 图书管理界面 4 5 6 7 47 48 49 50 效果图:
分类:
Web程序 时间:
2014-10-13 18:16:01
阅读次数:
241