异常:编译正常,但运行出错,会中断正常指令流RuntimeException:运行时异常分为:uncheck exception、和check
exception(除了RuntimeException以及子类以外的)uncheck exceptionclass Test{ public sta...
分类:
编程语言 时间:
2014-05-26 23:44:34
阅读次数:
323
#includeusing namespace std;int begin[9][9];bool
check(int x,int y,int k){ for(int i=0;i>t; while(t--) { for(int
i=0;i>begin[i][j]; ...
分类:
其他好文 时间:
2014-05-26 21:05:25
阅读次数:
189
转载自:http://www.cnblogs.com/happyPawpaw/archive/2012/10/19/2730478.html1按钮组件(Button)(1)Button组件常用样式SWT.PUSH按钮SWT.CHECK多选按钮SWT.RADIO单选按钮SWT.ARROW箭头按钮SWT...
分类:
其他好文 时间:
2014-05-26 16:12:58
阅读次数:
334
很多情况下,我们需要控件的背景是透明的,就是要求直接看到控件父窗口的背景颜色、背景位图,比如标签控件、单选Radio控件、复选Check控件,通常都要求在父窗口的背景上进行绘制。然而要求控件的画布透明,这个技术在GDI的文档中没有看到Microsoft作任何说明,当然还是有别的办法。其一:如果程序支...
分类:
其他好文 时间:
2014-05-23 02:55:14
阅读次数:
326
Determine whether an integer is a palindrome.
Do this without extra space.if use recursive, like check the first dig and last
dig, then remove them, c...
分类:
其他好文 时间:
2014-05-23 02:45:15
阅读次数:
230
What Is Your Grade?
Problem Description
“Point, point, life of student!”
This is a ballad(歌谣)well known in colleges, and you must care about your...
分类:
其他好文 时间:
2014-05-23 00:59:22
阅读次数:
375
格式:
mount -t cifs //IP/share-folder /mnt-point -o username=your-username,passwd=your-password
[root@client mnt]# mount -t cifs //192.168.230.1/f /mnt/share/ -o username=***,passwd=***
[root@clien...
题意:给你个矩阵,里面有n个标记的点,许多只青蛙在上面跳,每次跳的距离都是一样的且轨迹是直线,目标是从一边跳到另一边,求最多步数的青蛙
思路:排序后,枚举判断
#include
#include
#include
#include
using namespace std;
const int MAXN = 5050;
struct point{
int x,y;
void ini...
分类:
其他好文 时间:
2014-05-22 18:50:02
阅读次数:
255
建立ssh无验证连接
Check for SSH keys、
cd ~/.ssh
ls
Check the directory listing to see if you have a file named either id_rsa.pub or id_dsa.pub
检查有无产生过的key,一台机器只能创建一个。如果重新创建则前一个会被覆盖。
Generate a new SSH ...
分类:
其他好文 时间:
2014-05-22 18:33:48
阅读次数:
261
Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identical an...
分类:
其他好文 时间:
2014-05-22 16:46:03
阅读次数:
173