m*****i 发帖数: 332 | 1 The MVPs of the Olympic Tournament
ATHENS, 28 August
Emanuel David GINOBILI and Lisa LESLIE were voted as the Most Valuable Playe
rs of the Olympic Basketball Tournament of ATHENS 2004 Olympic Games.
For the Men's Olympic Tournament are also voted: Luis Alberto SCOLA (ARG), P
au GASOL (ESP), Giacomo GALANDA (ITA), Walter HERRMANN(ARG), Ruben WOLKOWYSK
I (ARG) and Alejandro Ariel MONTECCHIA (ARG).
For the Women's Olympic Tournament are also voted: Tina THOMPSON (USA), Laur
en JACKSON (AUS), Shery |
|
s*********4 发帖数: 3362 | 2 World Cup 2010 Top Goalscorer - 8:30 PM
David Villa (ESP) 8.00
Wayne Rooney (ENG) 10.00
Lionel Messi (ARG) 10.00
Luis Fabiano (BRA) 12.00
Robin van Persie (NED) 13.00
Fernando Torres (ESP) 16.00
Cristiano Ronaldo (POR) 18.00
Gonzalo Higuain (ARG) 21.00
Diego Milito (ARG) 26.00
Miroslav Klose (GER) 34.00
Robinho (BRA) 36.00
Alberto Gilardino (ITA) 41.00
Jeronimo Cacau (GER) 41.00
Carlos Tevez (ARG) 41.00
Kaka (BRA) 41.00
Peter Crouch (ENG) 41.00 |
|
l*****o 发帖数: 159 | 3 预测是个好玩的游戏。
梅西的球王之路已经铺好,四个对手实力逐级递强:墨西哥,英格兰,西班牙,巴西。
看梅西的了!
淘汰赛预测:
(1)决赛巴罩对根廷,根廷冠军!
(2)美帝进四强。
(3)糙英胜德国,只因让梅西走一下老马走过的槛儿!
从fifa造看点来说:
阿英大战,巴美大战,梅西对巴萨大战!
URU ARG
URU ARG
KOR MEX
USA ARG
USA GER
USA ENG
GHA ENG
BRA vs ARG
NED |
|
s***i 发帖数: 6149 | 4 2006 Arg vs Holland 0:0
1998 Arg vs Holland 1:2
1978 Arg vs Holland 3:1
1974 Arg vs Holland 0:4 |
|
r******o 发帖数: 122 | 5 看到下半部的签表,老费应该会偷笑了...
[1] Roger Federer (SUI) vs Alejandro Falla (COL)
Julien Benneteau (FRA) vs Mikhail Youzhny (RUS)
Adrian Ungur (ROU) vs Gilles Muller (LUX)
Denis Istomin (UZB) vs [14] Fernando Verdasco (ESP)
[10] John Isner (USA) vs Olivier Rochus (BEL)
Yen-Hsun Lu (TPE) vs Malek Jaziri (TUN)
Lukas Lacko (SVK) vs Ivo Karlovic (CRO)
David Nalbandian (ARG... 阅读全帖 |
|
D*****r 发帖数: 6791 | 6 http://www.ariel.com.au/jokes/The_Evolution_of_a_Programmer.html
High School/Jr.High
10 PRINT "HELLO WORLD"
20 END
First year in College
program Hello(input, output)
begin
writeln('Hello World')
end.
Senior year in College
(defun hello
(print
(cons 'Hello (list 'World))))
New professional
#include
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;
for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}
... 阅读全帖 |
|
f*******n 发帖数: 12623 | 7 I don't understand what's so hard about this.
An anonymous class is anonymous -- it doesn't have a name. It doesn't need
explicit constructors, because there is only one way it can be created.
Anything that can be accomplished with an explicit constructor, can be
accomplished with the implicit constructor that calls the superclass
constructor, initializer block, and capturing of variables.
When you have an anonymous class creation expression like this:
A x = new A(args) {
// members
};
It is b... 阅读全帖 |
|
r********r 发帖数: 208 | 8 运行如下的代码后得到了警告,点击“continue”后程序可以正常输出正确结果。
Google后也找不到答案,请大牛提示一下。
public class PrintCommandLineArguments{
public static void main(String[] args){
System.out.println(args[0] + " "
+ args[1] + " " + args[2]);
}
}
//arguments in command line are: arg1 arg2 arg3
----------------------------------------------------
PrintCommandLineArguments at localhost:2109 contains obsolete methods.
Reason:
The virtual machine was unable to remove all stack frames running old
code from the ca... 阅读全帖 |
|
z***s 发帖数: 3241 | 9 http://coolshell.cn/articles/8745.html
如此理解面向对象编程
2012年12月13日陈皓发表评论阅读评论 20,225 人阅读
从Rob Pike 的 Google+上的一个推看到了一篇叫《Understanding Object Oriented
Programming》的文章,我先把这篇文章简述一下,然后再说说老牌黑客Rob Pike的评
论。
先看这篇教程是怎么来讲述OOP的。它先给了下面这个问题,这个问题需要输出一段关
于操作系统的文字:假设Unix很不错,Windows很差。
这个把下面这段代码描述成是Hacker Solution。(这帮人觉得下面这叫黑客?我估计
这帮人真是没看过C语言的代码)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public class PrintOS
{
public static void main(final String[] args)
{
String osName = System.getProperty("... 阅读全帖 |
|
d********g 发帖数: 10550 | 10 这是override constructor,new style的class,super class就是object。没规定一
定要super,如果你不要基类的constructor的话。不光是__init__(),任何method都是
这个道理,要扩展(重用之前的代码)就是super,不super就是直接覆盖
因为object本身是不接收args、kwargs的所以可以这样简写,如果是从别的有可能接受
args的class继承,为了安全一般还得这样写:
class Reader(BaseClass):
def __init__(self, filename=None, *args, **kwargs):
super(Reader, self).__init__(*args, **kwargs)
# 然后再处理你自己的filename
Python 3里可以把super(Reader, self)简化成super() |
|
d********g 发帖数: 10550 | 11 这是override constructor,new style的class,super class就是object。没规定一
定要super,如果你不要基类的constructor的话。不光是__init__(),任何method都是
这个道理,要扩展(重用之前的代码)就是super,不super就是直接覆盖
因为object本身是不接收args、kwargs的所以可以这样简写,如果是从别的有可能接受
args的class继承,为了安全一般还得这样写:
class Reader(BaseClass):
def __init__(self, filename=None, *args, **kwargs):
super(Reader, self).__init__(*args, **kwargs)
# 然后再处理你自己的filename
Python 3里可以把super(Reader, self)简化成super() |
|
d****n 发帖数: 1637 | 12 var origCall = Function.prototype.call;
Function.prototype.call = function (thisArg) {
console.log("calling a function");
var args = Array.prototype.slice.call(arguments, 1);
origCall.apply(thisArg, args);
};
js自带的魔法, 得益于global object design
var origCall = Function.prototype.call;
Function.prototype.call = function (thisArg) {
console.log("calling a function");
var args = Array.prototype.slice.call(arguments, 1);
origCall.apply(thisArg, args);
};
http://stackoverflow.com/... 阅读全帖 |
|
s*****w 发帖数: 1527 | 13 https://medium.com/javascript-scene/you-might-not-need-typescript-or-static-
types-aa7cb670a77b
TypeScript won't reduce the number of bugs.
TypeScript does suffer from added complexity for generics. Take a look at
this generic identity function in standard JavaScript:
const identity = arg => arg;
Compare that to the much noisier statically typed function in TypeScript:
function identity(arg: T): T {
return arg;
} |
|
b***i 发帖数: 3043 | 14 我发现boost的库也是这样的,那它对吗?
template
inline
const typename lookup_named_param_def::type&
get_param(const Args& p, Tag){
return lookup_named_param_def::
get(p, param_not_found());
} |
|
l******9 发帖数: 579 | 15 【 以下文字转载自 Statistics 讨论区 】
发信人: light009 (light009), 信区: Statistics
标 题: pass arguments by reference in R
发信站: BBS 未名空间站 (Fri Apr 11 14:19:03 2014, 美东)
I need to do pass by reference in R by R studio on win 7.
My code:
myfunc<-function(myhash.arg, b)
{
myhash <- myhash.arg
if (!has.key("first", myhash))
myhash["first"] <- list()
alist <- myhash["first"]
alist <- append(alist, i)
eval.parent(substitute(myhash.arg<-myhash))
return(0)
}
ahash<-hash()
for(i in 1:5)
{
myfunc(myhash... 阅读全帖 |
|
f****e 发帖数: 590 | 16 在visual studio 下面建了一个dll project
加了一个c++ file和一个def file
c++里面很简单
double __stdcall square_in_C(double arg)
{return arg*arg;}
def file如下
LIBRARY MyXLLib
EXPORTS
square_in_C
然后打开excel,vba editor,加了一个module,里面是
Declare Function square_in_C Lib "C:/path.../Debug/MyXLLib.dll" (arg As
Double) As Double
没有报错,但是不work,在excel里面调用显示是error value,请问问题出在哪里?
谢谢~ |
|
l******9 发帖数: 579 | 17 【 以下文字转载自 Statistics 讨论区 】
发信人: light009 (light009), 信区: Statistics
标 题: pass arguments by reference in R
发信站: BBS 未名空间站 (Fri Apr 11 14:19:03 2014, 美东)
I need to do pass by reference in R by R studio on win 7.
My code:
myfunc<-function(myhash.arg, b)
{
myhash <- myhash.arg
if (!has.key("first", myhash))
myhash["first"] <- list()
alist <- myhash["first"]
alist <- append(alist, i)
eval.parent(substitute(myhash.arg<-myhash))
return(0)
}
ahash<-hash()
for(i in 1:5)
{
myfunc(myhash... 阅读全帖 |
|
sr 发帖数: 86 | 18
y: 每个人的pi
O: 硬币的正反面
O=\arg \max_O P(O|y)=\arg \max_O P(y|O)P(O)/P(y)
=\arg \max_O P(y|O)P(O)
=\arg \max_O 0.5 \prod_i P(y=i|O) |
|
l******9 发帖数: 579 | 19 I need to do pass by reference in R by R studio on win 7.
My code:
myfunc<-function(myhash.arg, b)
{
myhash <- myhash.arg
if (!has.key("first", myhash))
myhash["first"] <- list()
alist <- myhash["first"]
alist <- append(alist, i)
eval.parent(substitute(myhash.arg<-myhash))
return(0)
}
ahash<-hash()
for(i in 1:5)
{
myfunc(myhash.arg = ahash, b = i)
print(c("length of ahash is ", length(ahash)))
print(c("length of ahash list is ", length(ahash["first"])))
}
but, the list size... 阅读全帖 |
|
z*******n 发帖数: 1034 | 20 http://www.informit.com/articles/printerfriendly/2211695
Introduction to "The Java Language Specification, Java SE 8 Edition"
By James Gosling, Gilad Bracha, Alex Buckley, Bill Joy, Guy L. Steele
Date: Jun 12, 2014
The Java® programming language is a general-purpose, concurrent, class-
based, object-oriented language. It is designed to be simple enough that
many programmers can achieve fluency in the language. The Java programming
language is related to C and C++ but is organized rather dif... 阅读全帖 |
|
|