一、方法那些事儿 (1)方法的结构:方法头—指定方法的特征,方法体—可执行代码的语句序列;
(2)方法的调用:参数、值参数、引用参数、输出参数、参数数组; ①参数: 形参—本地变量,声明在参数列表中;形参的值在代码开始之前被初始化;
实参—实参的值用于初始化形参; ②值参数: ...
分类:
其他好文 时间:
2014-05-01 08:49:57
阅读次数:
352
1、将hdp002的数据库放到hdp004后,发现yii出现找不到表messages的迹象。用hdp002远程登录hdp004后发现,原来是hdp004没有授权给hdp002,用下面的sql语句即可:在安装mysql的机器上运行:
1、d:\mysql\bin\>mysql -h localho.....
分类:
数据库 时间:
2014-05-01 08:45:25
阅读次数:
473
本次主题:指针与数组在进入主题前,我们先看一个例子:#includeint main(){
int a[5] = { 1, 2, 3, 4, 5 }; int *ptr = (int *) (&a + 1); printf("%d,%d\n",
*(a + 1), *(ptr - ...
分类:
其他好文 时间:
2014-05-01 08:40:11
阅读次数:
324
ABAP开发中,使用for all entries
in语句将不能使用join的聚集表(例如BSEG)或者需要使用select的内表与内表串联。以BSEG为例:select belnr hkontfrom
bsisinto corresponding fields of table itab1whe...
分类:
其他好文 时间:
2014-05-01 08:38:54
阅读次数:
336
runtime
bundle/vim-pathogen/autoload/pathogen.vimset nocompatible " be iMproved,
requiredfiletype off " required" set th...
分类:
其他好文 时间:
2014-05-01 08:38:20
阅读次数:
327
??
Best Cow Line
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 8579
Accepted: 2629
Description
FJ is about to take his N (1 ≤ N ≤ 2,000) cows to the a...
分类:
其他好文 时间:
2014-04-29 13:48:21
阅读次数:
358
时间限制:2000ms
单点时限:200ms
内存限制:256MB
描述
Given N arithmetic expressions, can you tell whose result is closest to 9?
输入
Line 1: N (1
Line 2..N+1: Each line contains an expression in the f...
分类:
其他好文 时间:
2014-04-29 13:42:21
阅读次数:
268
long long定义方式可以用于gcc/g++,不受平台限制,但不能用于VC6.0。__int64是Win32平台编译器64位长整型的定义方式,不能用于Linux。“%lld”用于Linux i386平台编译器,”%I64d”用于Win32平台编译器。cout只能用于C++编译,在VC6.0中,cout不支持64位长整型。...
分类:
其他好文 时间:
2014-04-29 13:35:21
阅读次数:
309
最近项目需求,需要在JTextPane上添加行号等信息,网上找了好久只找到JTextArea添加行号信息,copy网上的程序研究了下,发现自己改改就可以让JTextPane显示行号!
代码:
package com.cml.line;
import java.awt.Color;
import java.awt.FontMetrics;
import java.awt.Compo...
分类:
其他好文 时间:
2014-04-29 13:33:22
阅读次数:
266
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line i is at (i, ai) and (i,
0). Fin...
分类:
其他好文 时间:
2014-04-29 13:15:21
阅读次数:
415