- 浏览: 14415 次
- 性别:
- 来自: 北京
最新评论
文章列表
package queen;
import java.util.Date;
public class SimpleQueen {
private final int size ;//棋盘大小
private boolean[][] isOccupied ;//初始化为false
private static int hasQueen = 0;//已经存在的皇后数
private static int count = 0;//统计总数
public SimpleQueen(int size){
this.size = size;
isOccupied = new bo ...
- 2008-08-27 12:27
- 浏览 1338
- 评论(0)
import java.util.Date;
public class Queen {
private final int size;//棋盘的大小,也表示皇后的数目
private int[] location;//皇后在棋盘的每行上的列的位置
private int[] colsOccupied;//皇后在棋盘上占据的列
private int[] cross1Occupied;//皇后在棋盘上占据的正对角线
private int[] cross2Occupied;//皇后在棋盘上占据的反对角线
private static int count;//解决方案的个数
...
- 2008-08-27 11:57
- 浏览 1020
- 评论(0)
双击main.box,程序自动打开IE,并自动打开网站首页。代码如下:
Dim httpd
Shell.Service.RunService "NBWeb", "NetBox Web Server", "NetBox Http Server Sample"
'---------------------- Service Event ---------------------
Sub OnServiceStart()
Set httpd = CreateObject("NetBox.HttpServer" ...
- 2007-11-21 08:18
- 浏览 1680
- 评论(0)