今天碰巧又把以前读过的章节重新复习了下(JavaScript权威指南 - 第五章 语句),刚巧看到这个就记了下,没有什么太大的意义。跟计算机的二进制原则一样,不是0就是1。1 if (expression) {2 // ... 3 } else if (expression1) {4 /...
分类:
其他好文 时间:
2014-06-25 21:14:25
阅读次数:
241
赋值语句variable=expression几种赋值的实例:x = x1+x2;x = sum(of x1-x6); 括号中要用ofsum(x,y);如果x或y中有一个为缺失值,sum的结果会将缺失值设为0,而如果用z=x+y;有缺失值的话z的结果会为缺失值ar(1) = br(1); *将数组b...
分类:
其他好文 时间:
2014-06-25 00:36:53
阅读次数:
1693
【问题】
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer or another expression.
Some examples:
...
分类:
编程语言 时间:
2014-06-24 23:22:53
阅读次数:
331
(一)C风格旧式转型:
(T)expression
T(expression)
(二)C++提供四种新式转型:
(1)const_cast(expression):去除表达式的常量性,是C++中唯一能做此操作的转型操作符。
(2)dynamic_cast(expression):主要用来执行“安全向下转型”,即用来决定某对象是否归属继承体系中的某个类型。它是唯一无法由旧式...
分类:
编程语言 时间:
2014-06-24 20:57:53
阅读次数:
253
看到一篇博文写lambda和reduce函数,笔者小痒了一下,用Python实现一下:
#! /usr/bin/env python
# -*-coding:utf-8-*-
import time
import math
def test_reduce():
start_time = time.clock()
print reduce[A1] (lam...
分类:
编程语言 时间:
2014-06-24 20:37:10
阅读次数:
272
题目
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the ent...
分类:
其他好文 时间:
2014-06-24 18:43:56
阅读次数:
224
分支语句 1. 条件语句 if-else ,基本语法形式如下,其中 “[]” 中 的部分可以省略。 if boolean-expression { statement1; } [else if boolean-expression { statement2; } ] [else {statement3; } ] 实例: var number1 = 0;var number2 =...
分类:
其他好文 时间:
2014-06-24 17:40:00
阅读次数:
255
Spring AOP中pointcut expression表达式解析 及匹配多个条件...
分类:
编程语言 时间:
2014-06-22 20:43:02
阅读次数:
221
定制操作_2
完整的biggies
好吧上一章是有点2B了,我的,昨天可能是刚考完心情有点小激动就不想学习了,我错了!!
/**
* 功能:定制操作
* 时间:2014年6月19日07:32:03
* 作者:cutter_point
*/
#include
#include
#include
#include
#include
using namespace std;
vo...
分类:
编程语言 时间:
2014-06-22 19:24:25
阅读次数:
222
?Methods (as well as lambda expressions or anonymous methods) can be markedwith the async keyword to enable the method to do work in a nonblockingmann...
分类:
其他好文 时间:
2014-06-21 17:58:34
阅读次数:
197