一、构造函数 Number(value) new Number(value)二、Number属性 1、Number.MAX_VALUE 返回能表示的最大数字。 2、Number.MIN_VALUE 能表示的最小数字。 3、Number.NAN 非数字值。 4、Number...
分类:
编程语言 时间:
2014-08-04 13:40:37
阅读次数:
221
一、构造函数 new object() new object(value) value:可以是数字,布尔值或字符串,这些值将转换为Number、Boolean或者String对象。二、属性 object.constructor 所有对象的constructor属性都指向当前对象的构造函数的...
分类:
编程语言 时间:
2014-08-04 13:39:47
阅读次数:
206
之前在VC++6.0上面写了下面这样的代码:int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]){ int nRetCode = 0; //不重要的部分略过if (argc>1) {if (strcmp(argv[1],"cre...
分类:
编程语言 时间:
2014-08-04 13:38:57
阅读次数:
224
Source :http://open-tube.com/12-source-code-profilers-for-cc/Code Profilers are very distinct from traditional debuggers. They are able to catch the t...
分类:
编程语言 时间:
2014-08-04 13:38:17
阅读次数:
467
题目:Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm....
分类:
编程语言 时间:
2014-08-04 13:34:47
阅读次数:
373
多线程技术在java中实现多线程技术有两种方式: 1.继承Thread类; 2.实现Runnable接口 这两种方法都需要重写run()方法;通常将一个新线程要运行的代码放在run()方法中(这是创建没有返回值线程的方法)由于java只支持单继承,当类已经继承有其他类时,只能选择实现Runnable...
分类:
编程语言 时间:
2014-08-04 13:34:37
阅读次数:
214
1 格式化输出函数printf("%d %s",a,str):格式化控制符之间不能有“逗号”,可以用空格2.1 指针:运用指针虽然效率高,但在指针运算时一定要谨慎指针的越界(上界和下界),例如P+i+1或者p+i-1 i++/i--.必要时要进行边界值带人推演。2.2 指针必须先赋值(有所指向)然后...
分类:
编程语言 时间:
2014-08-04 13:34:27
阅读次数:
237
一、Error()构造函数 构造函数:new Error(); new Error(message);二、Error.message //人类可读的错误消息 语法:error.message;三、Error.name //错误的类型 语法:error.name;四、Erro...
分类:
编程语言 时间:
2014-08-04 13:28:47
阅读次数:
239
interface Fruit { void eat(); } class Apple implements Fruit { public void eat() { System.out.println("I am eating apple."); } } class Orange implemen...
分类:
编程语言 时间:
2014-08-04 13:28:37
阅读次数:
229
With()方法平时用得不多,本文用个小例子来学习一下。在这里记录。个人感觉还是很方便的。有了 With 语句,在存取对象属性和方法时就不用重复指定参考对象,在 With 语句块中,凡是 JavaScript 不识别的属性和方法都和该语句块指定的对象有关。With 语句的语法格式如下所示:With ...
分类:
编程语言 时间:
2014-08-04 13:27:07
阅读次数:
224
一、eval() //执行一段字符串中的javascript代码。 语法:eval(code); //可以将javascript写在字符串里面执行。 var str = "document.write('你好!');" eval(str);二、EvalError...
分类:
编程语言 时间:
2014-08-04 13:26:37
阅读次数:
253
题目:Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?For example,Given sorted array A = [1,1,1,2,2,3],Your function shou....
分类:
编程语言 时间:
2014-08-04 13:24:27
阅读次数:
256
一、document.getElementById() 根据Id获取元素节点 我是第一个P 我是第二个P window.onload = function () { var...
分类:
编程语言 时间:
2014-08-04 13:22:27
阅读次数:
406
一、多线程 进程一般作为资源的组织单位,是计算机程序的运行实例,表示正在执行的指令,有自己独立的地址空间,包含程序内容和数据,进程间资源和状态相互隔离。 线程是程序的执行流程,CPU调度执行的基本单位,...
分类:
编程语言 时间:
2014-08-04 11:18:27
阅读次数:
249
最常用的Http请求无非是get和post,get请求可以获取静态页面,也可以把参数放在URL字串后面,传递给servlet,post与get的不同之处在于post的参数不是放在URL字串里面,而是放在http请求的正文内。 在Java中可以使...
分类:
编程语言 时间:
2014-08-04 11:18:07
阅读次数:
285
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
int main()
{
pair p;
p = make_pair(1,2) ;
pair p1(1,"sttttaa");...
分类:
编程语言 时间:
2014-08-04 11:09:07
阅读次数:
236
MFC绘图
MFC绘图类包括绘图设备类和绘图对象类
1 绘图设备类
CDC类-父类是CObject,封装的是一般的绘图设备,例如:显示器,
打印机等。
CWindowDC类-父类是CDC类,封装的是窗口对象,包括客户区和非
客户区。
CClientDC类-父类是CDC类,封装的仍然是窗口,但是只包括...
分类:
编程语言 时间:
2014-08-04 11:00:27
阅读次数:
415